mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -04:00
HTML: improve highlights & injections
This commit is contained in:
parent
3f9a8e9509
commit
b86555d9c3
6 changed files with 39 additions and 1 deletions
|
|
@ -1,5 +1,10 @@
|
|||
((style_element
|
||||
(raw_text) @css))
|
||||
|
||||
((attribute
|
||||
(attribute_name) @_attr
|
||||
(quoted_attribute_value (attribute_value) @css))
|
||||
(#match? @_attr "^style$"))
|
||||
|
||||
((script_element
|
||||
(raw_text) @javascript))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue