Skip to content
New issue

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

bug: comment must be after a whitespece #6

Open
2 tasks done
Freed-Wu opened this issue Dec 10, 2024 · 0 comments
Open
2 tasks done

bug: comment must be after a whitespece #6

Freed-Wu opened this issue Dec 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Freed-Wu
Copy link

Did you check existing issues?

  • I have read all the tree-sitter docs if it relates to using the parser
  • I have searched the existing issues

Tree-Sitter CLI Version, if relevant (output of tree-sitter --version)

No response

Describe the bug

Same as raimon49/requirements.txt.vim#40

comment must be after a whitespace. otherwise pip will report error.

Reported by @kamrup

Steps To Reproduce/Bad Parse Tree

numpy==2.1.3#not a comment

Expected Behavior/Parse Tree

(file ; [0, 0] - [1, 0]
  (requirement ; [0, 0] - [0, 12]
    (package) ; [0, 0] - [0, 5]
    (version_spec ; [0, 5] - [0, 12]
      (version_cmp) ; [0, 5] - [0, 7]
      (version))) ; [0, 7] - [0, 12]
  (comment ; [0, 12] - [0, 26]
    (source))) ; [0, 12] - [0, 26]

Repro

No response

@Freed-Wu Freed-Wu added the bug Something isn't working label Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant