summaryrefslogtreecommitdiff
path: root/runtime/queries/twig/highlights.scm
diff options
context:
space:
mode:
authorDaniel S Poulin2022-02-01 03:35:07 +0000
committerGitHub2022-02-01 03:35:07 +0000
commitd6b6ad879e297ff786ce520acd3ce9c4ff3c2e8e (patch)
treee16817096177dea4317dcc39a97bdb6a09adf4e2 /runtime/queries/twig/highlights.scm
parent983a53bfb4f20751d0c94c82a5faac52c517a0ab (diff)
epocsquadron/add tree sitter twig (#1602)
* Add tree-sitter-twig grammer and highlights The gammar itself is quite basic, but is much better than nothing for working with real files consisting mostly of html. * Docgen for newly added grammar
Diffstat (limited to 'runtime/queries/twig/highlights.scm')
-rw-r--r--runtime/queries/twig/highlights.scm16
1 files changed, 16 insertions, 0 deletions
diff --git a/runtime/queries/twig/highlights.scm b/runtime/queries/twig/highlights.scm
new file mode 100644
index 00000000..2c95ab63
--- /dev/null
+++ b/runtime/queries/twig/highlights.scm
@@ -0,0 +1,16 @@
+(comment_directive) @comment
+
+[
+ "{%"
+ "{%-"
+ "{%~"
+ "%}"
+ "-%}"
+ "~%}"
+ "{{"
+ "{{-"
+ "{{~"
+ "}}"
+ "-}}"
+ "~}}"
+] @keyword