mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 03:14:55 +02:00
add nvim/queries/vue/injections.scm
This commit is contained in:
parent
4df7150497
commit
95c5ec66b8
1 changed files with 15 additions and 0 deletions
15
nvim/queries/vue/injections.scm
Normal file
15
nvim/queries/vue/injections.scm
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
; inherits: vue
|
||||
|
||||
(
|
||||
(element
|
||||
(start_tag
|
||||
(tag_name) @_tag
|
||||
(attribute
|
||||
(attribute_name) @_attr
|
||||
(quoted_attribute_value
|
||||
(attribute_value) @injection.language)))
|
||||
(text) @injection.content)
|
||||
(#match? @_tag "^(i18n)$")
|
||||
(#eq? @_attr "lang")
|
||||
(#match? @injection.language "^(yaml|json)$")
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue