mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 20:00:07 -04:00
improve queries
This commit is contained in:
parent
9275a15aad
commit
4a29ccba9b
1 changed files with 9 additions and 8 deletions
|
|
@ -24,21 +24,21 @@
|
||||||
"]"
|
"]"
|
||||||
"("
|
"("
|
||||||
")"
|
")"
|
||||||
"[*]"
|
] @punctuation.bracket
|
||||||
".*"
|
|
||||||
] @specialChar
|
|
||||||
|
|
||||||
[
|
[
|
||||||
"."
|
"."
|
||||||
|
".*"
|
||||||
","
|
","
|
||||||
] @specialChar
|
"[*]"
|
||||||
|
] @punctuation.delimiter
|
||||||
|
|
||||||
[
|
[
|
||||||
(ellipsis)
|
(ellipsis)
|
||||||
"\?"
|
"\?"
|
||||||
":"
|
":"
|
||||||
"=>"
|
"=>"
|
||||||
] @special
|
] @punctuation.special
|
||||||
|
|
||||||
[
|
[
|
||||||
"for"
|
"for"
|
||||||
|
|
@ -55,18 +55,19 @@
|
||||||
(heredoc_template)
|
(heredoc_template)
|
||||||
] @string
|
] @string
|
||||||
|
|
||||||
|
(template_interpolation) @string.escape
|
||||||
|
|
||||||
(heredoc_identifier) @namespace
|
(heredoc_identifier) @namespace
|
||||||
(heredoc_start) @namespace
|
(heredoc_start) @namespace
|
||||||
(template_interpolation) @statement
|
|
||||||
(numeric_lit) @number
|
(numeric_lit) @number
|
||||||
(bool_lit) @boolean
|
(bool_lit) @boolean
|
||||||
(null_lit) @constant
|
(null_lit) @constant
|
||||||
(comment) @comment
|
(comment) @comment
|
||||||
(identifier) @identifier
|
(identifier) @variable
|
||||||
|
|
||||||
(block (identifier) @namespace)
|
(block (identifier) @namespace)
|
||||||
(function_call (identifier) @function)
|
(function_call (identifier) @function)
|
||||||
(function_call (function_arguments) @parameter)
|
(function_call (function_arguments) @parameter)
|
||||||
(attribute (identifier) @symbol)
|
(attribute (identifier) @definition.var)
|
||||||
|
|
||||||
(ERROR) @error
|
(ERROR) @error
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue