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
newlines are an extra by default (always skipped if possible wherever), if you don't want that then specify your extras property as an empty array
I misunderstood your question, this is interesting
I believe it has to do w/ the regex starting to process \s, then failing and trying to recover. See the output of the good and bad tree:
Good:
Bad:
Regexes are always terminal, and I'd like to say the usage of \s here causes the parser to try and not treat ws in possible identifier/document scenarios as an extra
With this test grammar:
and the test input:
tree-sitter produces this result (correct):
but if I changed document to this:
this result changed to this:
even there is not any
"foo"
in test input. the "newline" before identifiers is included into identifier.The text was updated successfully, but these errors were encountered: