From a7f49fa56fecd7f44efca7e6074e5cd9e5d91c92 Mon Sep 17 00:00:00 2001 From: Thomas Wehmöller Date: Sun, 10 Oct 2021 15:09:17 +0200 Subject: Add Vue tree sitter grammar (#787) * ✨ Add vue tree sitter support * Update .gitmodules Co-authored-by: Blaž Hrastnik --- runtime/queries/vue/injections.scm | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 runtime/queries/vue/injections.scm (limited to 'runtime/queries/vue/injections.scm') 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")) -- cgit v1.2.3-70-g09d2