diff options
| author | Yochem van Rosmalen <yochem+git@icloud.com> | 2023-03-01 14:26:52 +0100 |
|---|---|---|
| committer | Amaan Qureshi <amaanq12@gmail.com> | 2023-03-01 15:22:10 -0500 |
| commit | 252c1011c4bae91d25a8c54be4ed1a7b341c088c (patch) | |
| tree | b0643335a8505e7a29dc962f366274ebe57e5706 /queries/comment | |
| parent | feat: add prql (#4393) (diff) | |
| download | nvim-treesitter-252c1011c4bae91d25a8c54be4ed1a7b341c088c.tar nvim-treesitter-252c1011c4bae91d25a8c54be4ed1a7b341c088c.tar.gz nvim-treesitter-252c1011c4bae91d25a8c54be4ed1a7b341c088c.tar.bz2 nvim-treesitter-252c1011c4bae91d25a8c54be4ed1a7b341c088c.tar.lz nvim-treesitter-252c1011c4bae91d25a8c54be4ed1a7b341c088c.tar.xz nvim-treesitter-252c1011c4bae91d25a8c54be4ed1a7b341c088c.tar.zst nvim-treesitter-252c1011c4bae91d25a8c54be4ed1a7b341c088c.zip | |
comment(highlights): add `@nospell` to tags and user mentions
Diffstat (limited to 'queries/comment')
| -rw-r--r-- | queries/comment/highlights.scm | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/queries/comment/highlights.scm b/queries/comment/highlights.scm index 6466a4783..15adf45ab 100644 --- a/queries/comment/highlights.scm +++ b/queries/comment/highlights.scm @@ -1,39 +1,39 @@ (_) @spell ((tag - (name) @text.todo + (name) @text.todo @nospell ("(" @punctuation.bracket (user) @constant ")" @punctuation.bracket)? ":" @punctuation.delimiter) (#eq? @text.todo "TODO")) -("text" @text.todo +("text" @text.todo @nospell (#eq? @text.todo "TODO")) ((tag - (name) @text.note + (name) @text.note @nospell ("(" @punctuation.bracket (user) @constant ")" @punctuation.bracket)? ":" @punctuation.delimiter) (#any-of? @text.note "NOTE" "XXX")) -("text" @text.note +("text" @text.note @nospell (#any-of? @text.note "NOTE" "XXX")) ((tag - (name) @text.warning + (name) @text.warning @nospell ("(" @punctuation.bracket (user) @constant ")" @punctuation.bracket)? ":" @punctuation.delimiter) (#any-of? @text.warning "HACK" "WARNING")) -("text" @text.warning +("text" @text.warning @nospell (#any-of? @text.warning "HACK" "WARNING")) ((tag - (name) @text.danger + (name) @text.danger @nospell ("(" @punctuation.bracket (user) @constant ")" @punctuation.bracket)? ":" @punctuation.delimiter) (#any-of? @text.danger "FIXME" "BUG")) -("text" @text.danger +("text" @text.danger @nospell (#any-of? @text.danger "FIXME" "BUG")) ; Issue number (#123) @@ -41,5 +41,5 @@ (#lua-match? @number "^#[0-9]+$")) ; User mention (@user) -("text" @constant +("text" @constant @nospell (#lua-match? @constant "^[@][a-zA-Z0-9_-]+$")) |
