mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-11 07:50:07 -04:00
refactor(vue, html): Update injections
Update html_tags injections so that html/vue/svelte parsers can use it without having a script/style tag being captured twice Signed-off-by: Pham Huy Hoang <hoangtun0810@gmail.com>
This commit is contained in:
parent
7951eb53f8
commit
6f4b9b190b
4 changed files with 126 additions and 63 deletions
|
|
@ -1,12 +1 @@
|
|||
((style_element
|
||||
(raw_text) @css))
|
||||
|
||||
((attribute
|
||||
(attribute_name) @_attr
|
||||
(quoted_attribute_value (attribute_value) @css))
|
||||
(#eq? @_attr "style"))
|
||||
|
||||
((script_element
|
||||
(raw_text) @javascript))
|
||||
|
||||
(comment) @comment
|
||||
; inherits html_tags
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue