aboutsummaryrefslogtreecommitdiff
path: root/helix-22.03-x86_64-windows/runtime/queries/twig
diff options
context:
space:
mode:
Diffstat (limited to 'helix-22.03-x86_64-windows/runtime/queries/twig')
-rw-r--r--helix-22.03-x86_64-windows/runtime/queries/twig/highlights.scm16
-rw-r--r--helix-22.03-x86_64-windows/runtime/queries/twig/injections.scm3
2 files changed, 19 insertions, 0 deletions
diff --git a/helix-22.03-x86_64-windows/runtime/queries/twig/highlights.scm b/helix-22.03-x86_64-windows/runtime/queries/twig/highlights.scm
new file mode 100644
index 0000000..2c95ab6
--- /dev/null
+++ b/helix-22.03-x86_64-windows/runtime/queries/twig/highlights.scm
@@ -0,0 +1,16 @@
+(comment_directive) @comment
+
+[
+ "{%"
+ "{%-"
+ "{%~"
+ "%}"
+ "-%}"
+ "~%}"
+ "{{"
+ "{{-"
+ "{{~"
+ "}}"
+ "-}}"
+ "~}}"
+] @keyword
diff --git a/helix-22.03-x86_64-windows/runtime/queries/twig/injections.scm b/helix-22.03-x86_64-windows/runtime/queries/twig/injections.scm
new file mode 100644
index 0000000..f082273
--- /dev/null
+++ b/helix-22.03-x86_64-windows/runtime/queries/twig/injections.scm
@@ -0,0 +1,3 @@
+((content) @injection.content
+ (#set! injection.language "html")
+ (#set! injection.combined))