tree-sitter/spec/compiler/build_tables
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
..
does_match_any_line_spec.cc In lex error state, don't look for tokens that would match *any* line 2015-10-28 17:45:17 -07:00
item_set_closure_spec.cc Fix conflation of finished items w/ different precedence 2015-10-18 12:51:32 -07:00
lex_conflict_manager_spec.cc Make precedence more useful within tokens 2015-11-01 12:48:27 -08:00
lex_item_spec.cc Fix handling of changing precedence within lexical rules. 2015-11-08 13:36:15 -08:00
parse_conflict_manager_spec.cc Fix conflation of finished items w/ different precedence 2015-10-18 12:51:32 -07:00
parse_item_spec.cc Make completion_status() a method on ParseItem 2015-10-30 14:07:33 -07:00
rule_can_be_blank_spec.cc In compiler, distinguish between anonymous tokens and hidden rules 2015-09-05 22:28:55 -07:00