vlang / v-analyzer

The @vlang language server, for all your editing needs like go-to-definition, code completion, type hints, and more.
MIT License
103 stars 13 forks source link

tree-sitter: further improve parsing of nested comments, extend tests #76

Closed ttytm closed 6 months ago

ttytm commented 6 months ago

There are still several cases where comment parsing might run into errors. This PR approaches to fix some of them and to extend tests.

ttytm commented 6 months ago

With the extended tests most cases should be covered, running them on the current or earlier grammar version of v-analyzer reviles that there were a of issues. Errors and broken highlighting should hopefully be resolved.

A ref that helped: https://github.com/tree-sitter/tree-sitter/discussions/1252