Add 'reserved word' construct: improve error recovery by avoiding treating reserved words as other tokens by maxbrunsfeld · Pull Request #1635 · tree-sitter/tree-sitter
This is a second attempt to solve a problem described in #246. I'll copy some of the description here.
Background
Tree-sitter uses context-aware tokenization - in a given parse state, Tree-sitt...