mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 13:30:01 -04:00
update lockfile to point to v0.4.0; update highlight queries
This commit is contained in:
parent
b67442f112
commit
e607de4e1e
2 changed files with 15 additions and 8 deletions
|
|
@ -54,18 +54,20 @@
|
|||
] @conditional
|
||||
|
||||
[
|
||||
(string_lit)
|
||||
(quoted_template)
|
||||
(heredoc_template)
|
||||
(quoted_template_start) ; "
|
||||
(quoted_template_end); "
|
||||
(template_literal) ; non-interpolation/directive content
|
||||
] @string
|
||||
|
||||
|
||||
[
|
||||
(heredoc_identifier)
|
||||
(heredoc_start)
|
||||
(heredoc_identifier) ; <<END
|
||||
(heredoc_start) ; END
|
||||
] @punctuation.delimiter
|
||||
|
||||
(template_interpolation) @string.escape
|
||||
[
|
||||
(template_interpolation_start) ; ${
|
||||
(template_interpolation_end) ; }
|
||||
] @string.escape
|
||||
|
||||
(numeric_lit) @number
|
||||
(bool_lit) @boolean
|
||||
|
|
@ -77,4 +79,9 @@
|
|||
(function_call (identifier) @function)
|
||||
(attribute (identifier) @field)
|
||||
|
||||
; { key: val }
|
||||
;
|
||||
; highlight identifier keys as though they were block attributes
|
||||
(object_elem key: (expression (variable_expr (identifier) @field)))
|
||||
|
||||
(ERROR) @error
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue