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
Hey @yaglo, this is essentially the same case as this:
1or11or11or11or1
All of the above are parsed without error (but only the last one is valid). I discussed this upstream in the past (tree-sitter/tree-sitter#1404) and the conclusion was that this behaviour was kinda expected given all the context.
Generally false positives in edge cases like these are not critical. It is important to correctly parse all valid syntax, but it's not really the goal to strictly reject all invalid syntax :)
when
doesn't require a space after it but it should.Example:
tree-sitter-elixir parses it without issues (as you can see above):
Elixir's parser doesn't consider this valid:
The text was updated successfully, but these errors were encountered: