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
It is not easy to solve this because you can write something like this:
var
foo: int# comment
bar: int
And it'd still be valid code.
Comments are not treated as a part of the structure, so we can only say that a structure ended when we see code that is outside of that structure.
Technically, we can do some very fancy lookahead to emit a block close at that comment, but tree-sitter architecture is not optimized for this and would require a lot of work to implement this.
Current Behaviour
Expected Behaviour
When not indented like the block, a trailing comment should not be part of it.
The text was updated successfully, but these errors were encountered: