Remove incorrect return statement
This prevented conflicts between some tokens from being recorded properly. In the case of JavaScript, it prevented tree-sitter from recognizing the conflict between the forward slash operator and the regex token, allowing regexes to be merged into parse states containing '/' incorrectly. Refs tree-sitter/tree-sitter-javascript#71
This commit is contained in:
parent
f00d2ade46
commit
e8cfb9ced0
1 changed files with 0 additions and 1 deletions
|
|
@ -310,7 +310,6 @@ class LexTableBuilderImpl : public LexTableBuilder {
|
|||
} else {
|
||||
record_conflict(accept_action.symbol, advance_symbol, MatchesLongerString);
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue