lexer: Allow for negative lookahead within a command.
authorBen Pfaff <blp@cs.stanford.edu>
Tue, 23 Nov 2021 03:16:48 +0000 (19:16 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Mon, 6 Dec 2021 17:05:31 +0000 (09:05 -0800)
commitb454cceec7abb67de3225d63c9daf7b112ea4e0a
tree1e4fe67b6ef6646318985e260b19acfdc3686346
parent8b8989f53e3d8c52a029a1b463b49ff28df53927
lexer: Allow for negative lookahead within a command.

This allows to getting the location of prior tokens within a command,
which makes it easier to find the end of a group of tokens that was just
parsed by referring to the token at offset -1.
src/language/lexer/lexer.c