aboutsummaryrefslogtreecommitdiffstats
path: root/queries/embedded_template
diff options
context:
space:
mode:
authorNick Pezza <pezza@hey.com>2021-12-04 15:58:57 -0500
committerStephan Seitz <stephan.seitz@fau.de>2022-05-05 01:34:59 +0200
commitbcf091d865df27bbdbdc388338cfc6b78f4734d4 (patch)
treea1e1dc4f5c8f9899f2bae4d0002c348d373b19ca /queries/embedded_template
parentUpdate lockfile.json (diff)
downloadnvim-treesitter-bcf091d865df27bbdbdc388338cfc6b78f4734d4.tar
nvim-treesitter-bcf091d865df27bbdbdc388338cfc6b78f4734d4.tar.gz
nvim-treesitter-bcf091d865df27bbdbdc388338cfc6b78f4734d4.tar.bz2
nvim-treesitter-bcf091d865df27bbdbdc388338cfc6b78f4734d4.tar.lz
nvim-treesitter-bcf091d865df27bbdbdc388338cfc6b78f4734d4.tar.xz
nvim-treesitter-bcf091d865df27bbdbdc388338cfc6b78f4734d4.tar.zst
nvim-treesitter-bcf091d865df27bbdbdc388338cfc6b78f4734d4.zip
Add embedded template to support ERB files
Diffstat (limited to 'queries/embedded_template')
-rw-r--r--queries/embedded_template/highlights.scm12
-rw-r--r--queries/embedded_template/injections.scm2
2 files changed, 14 insertions, 0 deletions
diff --git a/queries/embedded_template/highlights.scm b/queries/embedded_template/highlights.scm
new file mode 100644
index 000000000..0bf76a7d4
--- /dev/null
+++ b/queries/embedded_template/highlights.scm
@@ -0,0 +1,12 @@
+(comment_directive) @comment
+
+[
+ "<%#"
+ "<%"
+ "<%="
+ "<%_"
+ "<%-"
+ "%>"
+ "-%>"
+ "_%>"
+] @keyword
diff --git a/queries/embedded_template/injections.scm b/queries/embedded_template/injections.scm
new file mode 100644
index 000000000..d55c87e09
--- /dev/null
+++ b/queries/embedded_template/injections.scm
@@ -0,0 +1,2 @@
+(content) @html @combined
+(code) @ruby @combined