You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Avoid OOB index in tree-sitter query parser/builder
This works around a bug in tree-sitter where the query parser/builder
accesses an array out-of-bounds causing undefined behavior. This fixes
a non-deterministic bug that would affect the behavior of the comment
grammar in Rust injections - sometimes comment tokens like WARN would
not be highlighted. Note that this change to the query is cosmetic: the
position of predicates in a pattern is not consequential.
The bug upstream is tracked in
<https://redirect.github.com/tree-sitter/tree-sitter/issues/4421>.
Co-authored-by: Pascal Kuthe <[email protected]>
0 commit comments