Skip to content

Commit 67446ac

Browse files
committed
FAQ: mention that neovim doesn't highlight all tags by default
1 parent fd1e102 commit 67446ac

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,15 @@ but you can match it with this query:
7373
(#match? @issue "^[0-9]+$"))
7474
```
7575

76+
### I'm using Neovim and don't see all tags highlighted
77+
78+
To avoid false positives, Neovim doesn't highlight all tags,
79+
but a list of specific ones,
80+
see the list at [`queries/comment/highlights.scm`](https://github.com/nvim-treesitter/nvim-treesitter/blob/master/queries/comment/highlights.scm).
81+
82+
If you want your tag highlighted, you can extend the query locally, see `:h treesitter-query`.
83+
Or if you think it's very common, you can suggest it [upstream](https://github.com/nvim-treesitter/nvim-treesitter).
84+
7685
## Why C?
7786

7887
Tree-sitter is a [LR parser](https://en.wikipedia.org/wiki/LR_parser) for context-free grammars,

0 commit comments

Comments
 (0)