aboutsummaryrefslogtreecommitdiffstats
path: root/queries/comment
diff options
context:
space:
mode:
authorPham Huy Hoang <hoangtun0810@gmail.com>2024-01-06 15:05:50 +0900
committerChristian Clason <c.clason@uni-graz.at>2024-01-19 16:58:37 +0100
commit57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9 (patch)
tree70bf645539882b88e6fa129cefd30986b89bbac3 /queries/comment
parentci: add query lint job (diff)
downloadnvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar
nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.gz
nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.bz2
nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.lz
nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.xz
nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.zst
nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.zip
chore: query formatting
Diffstat (limited to 'queries/comment')
-rw-r--r--queries/comment/highlights.scm20
1 files changed, 13 insertions, 7 deletions
diff --git a/queries/comment/highlights.scm b/queries/comment/highlights.scm
index 41b653e93..6556ec557 100644
--- a/queries/comment/highlights.scm
+++ b/queries/comment/highlights.scm
@@ -11,33 +11,39 @@
((tag
(name) @comment.note @nospell
- ("(" @punctuation.bracket (user) @constant ")" @punctuation.bracket)?
+ ("(" @punctuation.bracket
+ (user) @constant
+ ")" @punctuation.bracket)?
":" @punctuation.delimiter)
(#any-of? @comment.note "NOTE" "XXX" "INFO" "DOCS" "PERF" "TEST"))
("text" @comment.note @nospell
- (#any-of? @comment.note "NOTE" "XXX" "INFO" "DOCS" "PERF" "TEST"))
+ (#any-of? @comment.note "NOTE" "XXX" "INFO" "DOCS" "PERF" "TEST"))
((tag
(name) @comment.warning @nospell
- ("(" @punctuation.bracket (user) @constant ")" @punctuation.bracket)?
+ ("(" @punctuation.bracket
+ (user) @constant
+ ")" @punctuation.bracket)?
":" @punctuation.delimiter)
(#any-of? @comment.warning "HACK" "WARNING" "WARN" "FIX"))
("text" @comment.warning @nospell
- (#any-of? @comment.warning "HACK" "WARNING" "WARN" "FIX"))
+ (#any-of? @comment.warning "HACK" "WARNING" "WARN" "FIX"))
((tag
(name) @comment.error @nospell
- ("(" @punctuation.bracket (user) @constant ")" @punctuation.bracket)?
+ ("(" @punctuation.bracket
+ (user) @constant
+ ")" @punctuation.bracket)?
":" @punctuation.delimiter)
(#any-of? @comment.error "FIXME" "BUG" "ERROR"))
("text" @comment.error @nospell
- (#any-of? @comment.error "FIXME" "BUG" "ERROR"))
+ (#any-of? @comment.error "FIXME" "BUG" "ERROR"))
; Issue number (#123)
("text" @number
- (#lua-match? @number "^#[0-9]+$"))
+ (#lua-match? @number "^#[0-9]+$"))
((uri) @string.special.url @nospell)