mirror of https://github.com/helix-editor/helix
Add Vue tree sitter grammar (#787)
* ✨ Add vue tree sitter support
* Update .gitmodules
Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
pull/826/head
parent
4260b31ec0
commit
a7f49fa56f
@ -0,0 +1 @@
|
||||
Subproject commit 91fe2754796cd8fba5f229505a23fa08f3546c06
|
@ -0,0 +1,21 @@
|
||||
(tag_name) @tag
|
||||
(end_tag) @tag
|
||||
|
||||
(directive_name) @keyword
|
||||
(directive_argument) @constant
|
||||
|
||||
(attribute
|
||||
(attribute_name) @attribute
|
||||
(quoted_attribute_value
|
||||
(attribute_value) @string)
|
||||
)
|
||||
|
||||
(comment) @comment
|
||||
|
||||
[
|
||||
"<"
|
||||
">"
|
||||
"</"
|
||||
"{{"
|
||||
"}}"
|
||||
] @punctuation.bracket
|
@ -0,0 +1,17 @@
|
||||
(directive_attribute
|
||||
(directive_name) @keyword
|
||||
(quoted_attribute_value
|
||||
(attribute_value) @injection.content)
|
||||
(#set! injection.language "javascript"))
|
||||
|
||||
((interpolation
|
||||
(raw_text) @injection.content)
|
||||
(#set! injection.language "javascript"))
|
||||
|
||||
((script_element
|
||||
(raw_text) @injection.content)
|
||||
(#set! injection.language "javascript"))
|
||||
|
||||
((style_element
|
||||
(raw_text) @injection.content)
|
||||
(#set! injection.language "css"))
|
Loading…
Reference in New Issue