mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 13:00:08 -04:00
32 lines
605 B
Scheme
32 lines
605 B
Scheme
((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))
|
|
(#eq? @_attr "style"))
|
|
|
|
((script_element
|
|
(raw_text) @javascript))
|
|
|
|
((raw_text_expr) @javascript)
|
|
|
|
(
|
|
(script_element
|
|
(start_tag
|
|
(attribute
|
|
(quoted_attribute_value (attribute_value) @_lang)))
|
|
(raw_text) @typescript)
|
|
(#match? @_lang "(ts|typescript)")
|
|
)
|
|
|
|
(comment) @comment
|