fix nested block comments with a slash in between#275
fix nested block comments with a slash in between#275kofta999 wants to merge 1 commit intotree-sitter:masterfrom
Conversation
|
Hi @kofta999 , I have noticed that PRs in this repository are infrequently reviewed, so I have integrated your PR in a fork of this grammar. If you use this grammar in Rust, you can benefit from the improvements in this PR by switching to the Dear maintainers, |
|
@amaanq Do you know why the CI isn't running? |
This PR fixes a bug where having a forward slash between two nested block comments throws an error.
I haven't committed a run to
tree-sitter generateas I'm not sure if I should do so for a scanner change or not.Bug preview (using Zed 0.188.5):

How it looks like in VSCode:

Also added a test to
source-files.txttest for demonstration.It's my first time contributing to
tree-sitterso any feedback is appreciated.