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>
Tue, 30 Nov 2021 14:55:06 +0000 (06:55 -0800)
commit44c7a157afd05dace564c39e73a257c2758263b0
tree90df6f0884524b5a847a9e6d091857b84fa1cb9f
parentb949f4370763df3eb33c4c6d77ce740322c4fdf1
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