summaryrefslogtreecommitdiff
path: root/runtime/queries/vue/injections.scm
diff options
context:
space:
mode:
authorThomas Wehmöller2021-10-10 13:09:17 +0000
committerGitHub2021-10-10 13:09:17 +0000
commita7f49fa56fecd7f44efca7e6074e5cd9e5d91c92 (patch)
treec79906c7e3526dd6265e630ddcb1549c63db09bc /runtime/queries/vue/injections.scm
parent4260b31ec059ffa2207f8f2541af1c3996b00cf9 (diff)
Add Vue tree sitter grammar (#787)
* ✨ Add vue tree sitter support * Update .gitmodules Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
Diffstat (limited to 'runtime/queries/vue/injections.scm')
-rw-r--r--runtime/queries/vue/injections.scm17
1 files changed, 17 insertions, 0 deletions
diff --git a/runtime/queries/vue/injections.scm b/runtime/queries/vue/injections.scm
new file mode 100644
index 00000000..8ee34ffb
--- /dev/null
+++ b/runtime/queries/vue/injections.scm
@@ -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"))