aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/elsa/highlights.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/elsa/highlights.scm')
-rw-r--r--runtime/queries/elsa/highlights.scm36
1 files changed, 36 insertions, 0 deletions
diff --git a/runtime/queries/elsa/highlights.scm b/runtime/queries/elsa/highlights.scm
new file mode 100644
index 000000000..1a974bda6
--- /dev/null
+++ b/runtime/queries/elsa/highlights.scm
@@ -0,0 +1,36 @@
+; Keywords
+[
+ "eval"
+ "let"
+] @keyword
+
+; Function
+(function) @function
+
+; Method
+(method) @function.method
+
+; Parameter
+(parameter) @variable.parameter
+
+; Variables
+(identifier) @variable
+
+; Operators
+[
+ "\\"
+ "->"
+ "="
+ (step)
+] @operator
+
+; Punctuation
+[
+ "("
+ ")"
+] @punctuation.bracket
+
+":" @punctuation.delimiter
+
+; Comments
+(comment) @comment @spell