Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/adl/highlights.scm')
-rw-r--r--runtime/queries/adl/highlights.scm37
1 files changed, 37 insertions, 0 deletions
diff --git a/runtime/queries/adl/highlights.scm b/runtime/queries/adl/highlights.scm
new file mode 100644
index 00000000..88e00ad7
--- /dev/null
+++ b/runtime/queries/adl/highlights.scm
@@ -0,0 +1,37 @@
+; adl
+
+[
+"module"
+"struct"
+"union"
+"type"
+"newtype"
+"annotation"
+] @keyword
+
+(adl (scoped_name)) @namespace
+(comment) @comment
+(doc_comment) @comment.block.documentation
+(name) @type
+
+(fname) @variable.other.member
+
+(type_expr (scoped_name) @type)
+
+(type_expr_params (param (scoped_name) @type.parameter))
+
+; json
+(key) @string.special
+
+(string) @string
+
+(number) @constant.numeric
+
+[
+ (null)
+ (true)
+ (false)
+] @constant.builtin
+
+(escape_sequence) @constant.character.escape
+