tree-sitter/spec/compiler/helpers
Max Brunsfeld d5ce268074 Fix handling of changing precedence within lexical rules.
A precedence annotation wrapping a sequence of characters now only affects how
tightly those characters bind to *each other*, not how tightly they bind to the
preceding character.

This bug surfaced because a generated lexer was failing to recognize a '\n' character
as a token, instead treating it as ubiquitous whitespace. It made this error
because, even though anonymous ubiquitous tokens have the lowest precedence, the
character immediately *after* the '\n' was part of a normal token, which had
*normal* precedence (0). Advancing into that following token was incorrectly
prioritized above accepting the line-break token.
2015-11-08 13:36:15 -08:00
..
equals_pointer.h Use 2-space continuation indent consistently in specs 2015-07-27 18:18:58 -07:00
rule_helpers.cc Fix handling of changing precedence within lexical rules. 2015-11-08 13:36:15 -08:00
rule_helpers.h Fix handling of changing precedence within lexical rules. 2015-11-08 13:36:15 -08:00
stream_methods.cc 🔥 get_metadata function 2015-10-30 16:22:25 -07:00
stream_methods.h 🔥 get_metadata function 2015-10-30 16:22:25 -07:00