Closed erikw closed 2 years ago
@erikw hi! you can already do this with a query, for example:
The text
node exposes all words that aren't tags.
@stsewd thanks for your support!
The following worked for me.
$ mkdir -p $XDG_CONFIG_HOME/nvim/queries/comment
$ touch $XDG_CONFIG_HOME/nvim/queries/comment/highlights.scm
and set highlights.scm
to the contents:
("text" @text.warning
(#any-of? @text.warning "NOTE" ))
What do you think about adding this to tree-sitter-comment directly? To make it consistent with that how TODO markers are recognized [also without trailing colon]?
What do you think about adding this to tree-sitter-comment directly? To make it consistent with that how TODO markers are recognized [also without trailing colon]?
I think it makes sense to have it upstream, feel free to open a PR and see what the others think.
Hey, thanks for providing this parser!
There are some different styles out there for markers in common, two being e.g.
TODO
andTODO:
. I noticed that this parser supports, which is great (I prefer the first to save one character).However it seems like for the marker for notes, only
NOTE:
is detected but notNOTE
, which I frequently use.Would it be possible to make the trailing colon optional for all markers?