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
The issue is that if you comment the first line (only the first line) in any JSX block, then there will be a syntax error. For example, this is not valid JS/JSX:
I don't think that this is a problem with treesitter because it makes sense that it can't parse the commented code, it's not actually valid syntax. So, I think that something should still be added to this plugin to handle the weird treesitter syntax tree, but it probably requires being able to write more complex configuration for commentstrings.
But there might be another good solution, I haven't given this issue too much thought.
The issue is that if you comment the first line (only the first line) in any JSX block, then there will be a syntax error. For example, this is not valid JS/JSX:
Now, treesitter thinks that the first line of JSX with the comment is an
object
.But I don't think that it's super high priority for now. I probably won't be dealing with it any time soon.
Initial issue from here: #10 (comment)
The text was updated successfully, but these errors were encountered: