diff options
Diffstat (limited to 'runtime/queries/ejs')
-rw-r--r-- | runtime/queries/ejs/highlights.scm | 12 | ||||
-rw-r--r-- | runtime/queries/ejs/injections.scm | 7 |
2 files changed, 19 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)) |