Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/jjtemplate/highlights.scm')
-rw-r--r--runtime/queries/jjtemplate/highlights.scm14
1 files changed, 14 insertions, 0 deletions
diff --git a/runtime/queries/jjtemplate/highlights.scm b/runtime/queries/jjtemplate/highlights.scm
new file mode 100644
index 00000000..cb75a7f9
--- /dev/null
+++ b/runtime/queries/jjtemplate/highlights.scm
@@ -0,0 +1,14 @@
+(function ((identifier) @function))
+; method calls
+(term (_) ("." @punctuation) ((function ((identifier) @function.method))))
+
+["(" ")"] @punctuation.bracket
+"," @punctuation.delimiter
+
+((identifier) @keyword.control.conditional (#eq? @keyword.control.conditional "if"))
+((identifier) @keyword.control.repeat (#eq? @keyword.control.repeat "for"))
+
+(term ((identifier) @variable))
+
+[(infix_ops) "++"] @operator
+[(string_literal) (raw_string_literal)] @string