mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
injections(svelte): add pug injection
This commit is contained in:
parent
dd600cf1c2
commit
5b71f2674a
1 changed files with 12 additions and 0 deletions
|
|
@ -26,3 +26,15 @@
|
|||
(#eq? @_attr "lang")
|
||||
(#any-of? @_lang "ts" "typescript")
|
||||
)
|
||||
|
||||
(
|
||||
(element
|
||||
(start_tag
|
||||
(attribute
|
||||
(attribute_name) @_attr
|
||||
(quoted_attribute_value
|
||||
(attribute_value) @_lang)))
|
||||
(text) @pug)
|
||||
(#eq? @_attr "lang")
|
||||
(#eq? @_lang "pug")
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue