mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-13 08:50:11 -04:00
feat: use @ignore for comments and multiline strings
This commit is contained in:
parent
1297e4f1b1
commit
0bf8f58cd2
12 changed files with 32 additions and 0 deletions
|
|
@ -14,3 +14,8 @@
|
||||||
"{"
|
"{"
|
||||||
"}"
|
"}"
|
||||||
] @branch
|
] @branch
|
||||||
|
|
||||||
|
[
|
||||||
|
(comment)
|
||||||
|
(preproc_function_def)
|
||||||
|
] @ignore
|
||||||
|
|
|
||||||
|
|
@ -14,3 +14,5 @@
|
||||||
"{"
|
"{"
|
||||||
"}"
|
"}"
|
||||||
] @branch
|
] @branch
|
||||||
|
|
||||||
|
(comment) @ignore
|
||||||
|
|
|
||||||
|
|
@ -7,3 +7,4 @@
|
||||||
"}"
|
"}"
|
||||||
] @branch
|
] @branch
|
||||||
|
|
||||||
|
(comment) @ignore
|
||||||
|
|
|
||||||
|
|
@ -20,3 +20,5 @@
|
||||||
"{"
|
"{"
|
||||||
"}"
|
"}"
|
||||||
] @branch
|
] @branch
|
||||||
|
|
||||||
|
(comment) @ignore
|
||||||
|
|
|
||||||
|
|
@ -7,3 +7,5 @@
|
||||||
">"
|
">"
|
||||||
"/>"
|
"/>"
|
||||||
] @branch
|
] @branch
|
||||||
|
|
||||||
|
(comment) @ignore
|
||||||
|
|
|
||||||
|
|
@ -18,3 +18,5 @@
|
||||||
"["
|
"["
|
||||||
"]"
|
"]"
|
||||||
] @branch
|
] @branch
|
||||||
|
|
||||||
|
(comment) @ignore
|
||||||
|
|
|
||||||
|
|
@ -25,3 +25,8 @@
|
||||||
"["
|
"["
|
||||||
"]"
|
"]"
|
||||||
] @branch
|
] @branch
|
||||||
|
|
||||||
|
[
|
||||||
|
(comment)
|
||||||
|
(template_string)
|
||||||
|
] @ignore
|
||||||
|
|
|
||||||
|
|
@ -1 +1,3 @@
|
||||||
; inherits: json
|
; inherits: json
|
||||||
|
|
||||||
|
(comment) @ignore
|
||||||
|
|
|
||||||
|
|
@ -27,3 +27,5 @@
|
||||||
(else)
|
(else)
|
||||||
(elseif)
|
(elseif)
|
||||||
] @branch
|
] @branch
|
||||||
|
|
||||||
|
(comment) @ignore
|
||||||
|
|
|
||||||
|
|
@ -10,3 +10,5 @@
|
||||||
(elsif)
|
(elsif)
|
||||||
"end"
|
"end"
|
||||||
] @branch
|
] @branch
|
||||||
|
|
||||||
|
(comment) @ignore
|
||||||
|
|
|
||||||
|
|
@ -26,3 +26,8 @@
|
||||||
"{"
|
"{"
|
||||||
"}"
|
"}"
|
||||||
] @branch
|
] @branch
|
||||||
|
|
||||||
|
[
|
||||||
|
(line_comment)
|
||||||
|
(raw_string_literal)
|
||||||
|
] @ignore
|
||||||
|
|
|
||||||
|
|
@ -14,3 +14,5 @@
|
||||||
">"
|
">"
|
||||||
"/>"
|
"/>"
|
||||||
] @branch
|
] @branch
|
||||||
|
|
||||||
|
(comment) @ignore
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue