Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/alloy/highlights.scm')
-rw-r--r--runtime/queries/alloy/highlights.scm39
1 files changed, 39 insertions, 0 deletions
diff --git a/runtime/queries/alloy/highlights.scm b/runtime/queries/alloy/highlights.scm
new file mode 100644
index 00000000..e62970c6
--- /dev/null
+++ b/runtime/queries/alloy/highlights.scm
@@ -0,0 +1,39 @@
+; Literals
+; --------
+
+(boolean) @constant.builtin.boolean
+(comment) @comment
+(string) @string
+(number) @constant.numeric
+(null) @constant.builtin
+
+; Punctuation
+; -----------
+
+[
+ "("
+ ")"
+ "["
+ "]"
+ "{"
+ "}"
+] @punctuation.bracket
+
+[
+ "."
+ ","
+] @punctuation.delimiter
+
+[
+ "="
+] @operator
+
+; Function definitions
+;---------------------
+
+(function
+ name: (identifier) @function)
+
+
+(attribute (identifier) @variable.other.member)
+(block (identifier) @type.builtin)