mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-07 14:00:00 -04:00
I think these have been broken since the query parser update. Basically the inner node for the string content was preventing injections because include-children was not set.
27 lines
620 B
Scheme
27 lines
620 B
Scheme
; vim: ft=query
|
|
; format-ignore
|
|
(((symbol) @constant
|
|
(#not-lua-match? @constant "^_*[A-Z][A-Z0-9_]*$"))
|
|
; ^ @luap
|
|
)
|
|
|
|
; format-ignore
|
|
(((tag
|
|
(attributes
|
|
(attribute
|
|
(attribute_name) @keyword)))
|
|
(#match? @keyword "^(:|v-bind|v-|\\@)"))
|
|
; ^ @regex
|
|
)
|
|
|
|
((comment) @injection.language
|
|
.
|
|
[
|
|
(string_expression
|
|
(string_fragment) @injection.content)
|
|
(indented_string_expression
|
|
(string_fragment) @injection.content)
|
|
]
|
|
(#gsub! @injection.language "#%s*([%w%p]+)%s*" "%1")
|
|
; ^ @luap
|
|
(#set! injection.combined))
|