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.20.8
If the first (non-blank / non-comment) line starts with #!, even if it should be parsed as an inner_attribute_item, it is regarded as a shebang.
#!
(source_file [0, 0] - [3, 0] (shebang [0, 0] - [0, 27]) (function_item [2, 0] - [2, 12] name: (identifier [2, 3] - [2, 7]) parameters: (parameters [2, 7] - [2, 9]) body: (block [2, 10] - [2, 12])))
(source_file [0, 0] - [3, 0] (inner_attribute_item [0, 0] - [0, 27] (attribute [0, 3] - [0, 26] (identifier [0, 3] - [0, 8]) arguments: (token_tree [0, 8] - [0, 26] (identifier [0, 9] - [0, 25])))) (function_item [2, 0] - [2, 12] name: (identifier [2, 3] - [2, 7]) parameters: (parameters [2, 7] - [2, 9]) body: (block [2, 10] - [2, 12])))
#![allow(unused_variables)] fn main() {}
The text was updated successfully, but these errors were encountered:
Thanks, fixed on master
Sorry, something went wrong.
Thanks for the quick fix!
No branches or pull requests
Did you check existing issues?
Tree-Sitter CLI Version, if relevant (output of
tree-sitter --version
)tree-sitter 0.20.8
Describe the bug
If the first (non-blank / non-comment) line starts with
#!
, even if it should be parsed as an inner_attribute_item, it is regarded as a shebang.Steps To Reproduce/Bad Parse Tree
Expected Behavior/Parse Tree
Repro
The text was updated successfully, but these errors were encountered: