Fix parsing of wildcard patterns at the ends of documents
- Remove special EOF handling from lexer - Explicitly exclude the EOF character from all-inclusive character sets.
This commit is contained in:
parent
a2b80098b2
commit
68d6e242ee
8 changed files with 98 additions and 39 deletions
|
|
@ -96,10 +96,7 @@ struct TSLanguage {
|
|||
#define ADVANCE(state_index) \
|
||||
{ \
|
||||
DEBUG_LEX("ADVANCE %d", state_index); \
|
||||
if (!ts_lexer_advance(lexer)) { \
|
||||
DEBUG_LEX("END"); \
|
||||
return ts_lexer_accept(lexer, ts_builtin_sym_end, 0); \
|
||||
} \
|
||||
ts_lexer_advance(lexer); \
|
||||
lex_state = state_index; \
|
||||
goto next_state; \
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue