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:
Max Brunsfeld 2018-04-17 17:13:22 -07:00
parent f00d2ade46
commit e8cfb9ced0

View file

@ -310,7 +310,6 @@ class LexTableBuilderImpl : public LexTableBuilder {
} else {
record_conflict(accept_action.symbol, advance_symbol, MatchesLongerString);
}
return;
}
}