mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-04 04:20:09 -04:00
feat: add scss injection for svelte/vue
This commit is contained in:
parent
8ac8f2c39b
commit
ffbf8f19a4
2 changed files with 17 additions and 1 deletions
|
|
@ -1,6 +1,15 @@
|
|||
((style_element
|
||||
(raw_text) @css))
|
||||
|
||||
(
|
||||
(style_element
|
||||
(start_tag
|
||||
(attribute
|
||||
(quoted_attribute_value (attribute_value) @_lang)))
|
||||
(raw_text) @scss)
|
||||
(#match? @_lang "(scss|postcss|less)")
|
||||
)
|
||||
|
||||
((attribute
|
||||
(attribute_name) @_attr
|
||||
(quoted_attribute_value (attribute_value) @css))
|
||||
|
|
|
|||
|
|
@ -1,7 +1,14 @@
|
|||
((style_element
|
||||
(raw_text) @css))
|
||||
|
||||
; There's no queries for less, sass nor postcss.
|
||||
(
|
||||
(style_element
|
||||
(start_tag
|
||||
(attribute
|
||||
(quoted_attribute_value (attribute_value) @_lang)))
|
||||
(raw_text) @scss)
|
||||
(#match? @_lang "(scss|postcss|less)")
|
||||
)
|
||||
|
||||
((script_element
|
||||
(raw_text) @javascript))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue