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/highlights.scm | 21 +++++++++++++++++++++ runtime/queries/vue/injections.scm | 17 +++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 runtime/queries/vue/highlights.scm create mode 100644 runtime/queries/vue/injections.scm (limited to 'runtime/queries') diff --git a/runtime/queries/vue/highlights.scm b/runtime/queries/vue/highlights.scm new file mode 100644 index 00000000..f90ae429 --- /dev/null +++ b/runtime/queries/vue/highlights.scm @@ -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 + +[ + "<" + ">" + "