aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'runtime')
-rw-r--r--runtime/queries/ejs/highlights.scm12
-rw-r--r--runtime/queries/ejs/injections.scm7
-rw-r--r--runtime/queries/erb/highlights.scm1
-rw-r--r--runtime/queries/erb/injections.scm7
4 files changed, 27 insertions, 0 deletions
diff --git a/runtime/queries/ejs/highlights.scm b/runtime/queries/ejs/highlights.scm
new file mode 100644
index 00000000..0bf76a7d
--- /dev/null
+++ b/runtime/queries/ejs/highlights.scm
@@ -0,0 +1,12 @@
+(comment_directive) @comment
+
+[
+ "<%#"
+ "<%"
+ "<%="
+ "<%_"
+ "<%-"
+ "%>"
+ "-%>"
+ "_%>"
+] @keyword
diff --git a/runtime/queries/ejs/injections.scm b/runtime/queries/ejs/injections.scm
new file mode 100644
index 00000000..e612a936
--- /dev/null
+++ b/runtime/queries/ejs/injections.scm
@@ -0,0 +1,7 @@
+((content) @injection.content
+ (#set! injection.language "html")
+ (#set! injection.combined))
+
+((code) @injection.content
+ (#set! injection.language "javascript")
+ (#set! injection.combined))
diff --git a/runtime/queries/erb/highlights.scm b/runtime/queries/erb/highlights.scm
new file mode 100644
index 00000000..38830615
--- /dev/null
+++ b/runtime/queries/erb/highlights.scm
@@ -0,0 +1 @@
+; inherits: ejs
diff --git a/runtime/queries/erb/injections.scm b/runtime/queries/erb/injections.scm
new file mode 100644
index 00000000..2824f7a0
--- /dev/null
+++ b/runtime/queries/erb/injections.scm
@@ -0,0 +1,7 @@
+((content) @injection.content
+ (#set! injection.language "html")
+ (#set! injection.combined))
+
+((code) @injection.content
+ (#set! injection.language "ruby")
+ (#set! injection.combined))