mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 05:20:00 -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)
|
||||
"\?"
|
||||
":"
|
||||
"=>"
|
||||
] @punctuation.special
|
||||
|
||||
[
|
||||
":"
|
||||
"="
|
||||
] @none
|
||||
|
||||
[
|
||||
"for"
|
||||
"in"
|
||||
|
|
@ -55,19 +59,22 @@
|
|||
(heredoc_template)
|
||||
] @string
|
||||
|
||||
|
||||
[
|
||||
(heredoc_identifier) @punctuation.delimiter
|
||||
(heredoc_start) @punctuation.delimiter
|
||||
]
|
||||
|
||||
(template_interpolation) @string.escape
|
||||
|
||||
(heredoc_identifier) @namespace
|
||||
(heredoc_start) @namespace
|
||||
(numeric_lit) @number
|
||||
(bool_lit) @boolean
|
||||
(null_lit) @constant
|
||||
(comment) @comment
|
||||
(identifier) @symbol
|
||||
|
||||
(block (identifier) @namespace)
|
||||
(block (identifier) @type)
|
||||
(function_call (identifier) @function)
|
||||
(function_call (function_arguments) @parameter)
|
||||
(attribute (identifier) @symbol)
|
||||
(attribute (identifier) @keyword)
|
||||
|
||||
(ERROR) @error
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue