stsewd / tree-sitter-comment

Tree-sitter grammar for comment tags like TODO, FIXME(user).
https://stsewd.dev/tree-sitter-comment/
MIT License
134 stars 9 forks source link

feat: update tree-sitter, recognize modelines #37

Closed ribru17 closed 6 months ago

ribru17 commented 6 months ago

Parses modelines based on the rules specified in :h modeline. Also updates the grammar to the latest Tree-sitter CLI version (available in NPM).

stsewd commented 6 months ago

Hi, thanks for the PR. I may have to think more about this, this type of modelines are specific to vim, not sure if they should be in the parser itself.

A PR to update to the latest TS cli is welcome, if you can do that in a separate PR, I'll be happy to review it.

ribru17 commented 6 months ago

@stsewd Totally, I will separate them. Feel free to merge what you want :+1: