mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 13:30:01 -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 @@
|
|||
"]"
|
||||
"("
|
||||
")"
|
||||
"[*]"
|
||||
".*"
|
||||
] @specialChar
|
||||
] @punctuation.bracket
|
||||
|
||||
[
|
||||
"."
|
||||
".*"
|
||||
","
|
||||
] @specialChar
|
||||
"[*]"
|
||||
] @punctuation.delimiter
|
||||
|
||||
[
|
||||
(ellipsis)
|
||||
"\?"
|
||||
":"
|
||||
"=>"
|
||||
] @special
|
||||
] @punctuation.special
|
||||
|
||||
[
|
||||
"for"
|
||||
|
|
@ -55,18 +55,19 @@
|
|||
(heredoc_template)
|
||||
] @string
|
||||
|
||||
(template_interpolation) @string.escape
|
||||
|
||||
(heredoc_identifier) @namespace
|
||||
(heredoc_start) @namespace
|
||||
(template_interpolation) @statement
|
||||
(numeric_lit) @number
|
||||
(bool_lit) @boolean
|
||||
(null_lit) @constant
|
||||
(comment) @comment
|
||||
(identifier) @identifier
|
||||
(identifier) @variable
|
||||
|
||||
(block (identifier) @namespace)
|
||||
(function_call (identifier) @function)
|
||||
(function_call (function_arguments) @parameter)
|
||||
(attribute (identifier) @symbol)
|
||||
(attribute (identifier) @definition.var)
|
||||
|
||||
(ERROR) @error
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue