We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tree-sitter --version
tree-sitter 0.22.6 (b40f342067a89cd6331bf4c27407588320f3c263)
The following code fragment is parsed incorrectly:
#!/bin/sh # Actually, this is a tcl script \ exec tclsh "$0" ${1+"$@"}
The third line is parsed as an exec command when it should be parsed as comment because of \ in the previous line. Source: Tclsh Docs
exec
\
(source_file ; [0, 0] - [3, 0] (comment) ; [0, 0] - [0, 9] (comment) ; [1, 0] - [1, 34] (command ; [2, 0] - [2, 25] name: (simple_word) ; [2, 0] - [2, 4] arguments: (word_list ; [2, 5] - [2, 25] (simple_word) ; [2, 5] - [2, 10] (quoted_word ; [2, 11] - [2, 15] (ERROR ; [2, 12] - [2, 14] (simple_word))) ; [2, 13] - [2, 14] (variable_substitution)))) ; [2, 16] - [2, 25]
The exec tclsh "$0" ${1+"$@"} line is parsed as a comment.
exec tclsh "$0" ${1+"$@"}
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Did you check existing issues?
Tree-Sitter CLI Version, if relevant (output of
tree-sitter --version
)tree-sitter 0.22.6 (b40f342067a89cd6331bf4c27407588320f3c263)
Describe the bug
The following code fragment is parsed incorrectly:
The third line is parsed as an
exec
command when it should be parsed as comment because of\
in the previous line. Source: Tclsh DocsSteps To Reproduce/Bad Parse Tree
Expected Behavior/Parse Tree
The
exec tclsh "$0" ${1+"$@"}
line is parsed as a comment.Repro
No response
The text was updated successfully, but these errors were encountered: