mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 04:10:06 -04:00
work on queries
This commit is contained in:
parent
fabc31276e
commit
1914317ae7
1 changed files with 13 additions and 6 deletions
|
|
@ -36,10 +36,14 @@
|
||||||
[
|
[
|
||||||
(ellipsis)
|
(ellipsis)
|
||||||
"\?"
|
"\?"
|
||||||
":"
|
|
||||||
"=>"
|
"=>"
|
||||||
] @punctuation.special
|
] @punctuation.special
|
||||||
|
|
||||||
|
[
|
||||||
|
":"
|
||||||
|
"="
|
||||||
|
] @none
|
||||||
|
|
||||||
[
|
[
|
||||||
"for"
|
"for"
|
||||||
"in"
|
"in"
|
||||||
|
|
@ -55,19 +59,22 @@
|
||||||
(heredoc_template)
|
(heredoc_template)
|
||||||
] @string
|
] @string
|
||||||
|
|
||||||
|
|
||||||
|
[
|
||||||
|
(heredoc_identifier) @punctuation.delimiter
|
||||||
|
(heredoc_start) @punctuation.delimiter
|
||||||
|
]
|
||||||
|
|
||||||
(template_interpolation) @string.escape
|
(template_interpolation) @string.escape
|
||||||
|
|
||||||
(heredoc_identifier) @namespace
|
|
||||||
(heredoc_start) @namespace
|
|
||||||
(numeric_lit) @number
|
(numeric_lit) @number
|
||||||
(bool_lit) @boolean
|
(bool_lit) @boolean
|
||||||
(null_lit) @constant
|
(null_lit) @constant
|
||||||
(comment) @comment
|
(comment) @comment
|
||||||
(identifier) @symbol
|
(identifier) @symbol
|
||||||
|
|
||||||
(block (identifier) @namespace)
|
(block (identifier) @type)
|
||||||
(function_call (identifier) @function)
|
(function_call (identifier) @function)
|
||||||
(function_call (function_arguments) @parameter)
|
(attribute (identifier) @keyword)
|
||||||
(attribute (identifier) @symbol)
|
|
||||||
|
|
||||||
(ERROR) @error
|
(ERROR) @error
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue