aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/ziggy_schema
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/ziggy_schema')
-rw-r--r--runtime/queries/ziggy_schema/highlights.scm38
-rw-r--r--runtime/queries/ziggy_schema/indents.scm3
2 files changed, 41 insertions, 0 deletions
diff --git a/runtime/queries/ziggy_schema/highlights.scm b/runtime/queries/ziggy_schema/highlights.scm
new file mode 100644
index 000000000..4e1770127
--- /dev/null
+++ b/runtime/queries/ziggy_schema/highlights.scm
@@ -0,0 +1,38 @@
+(struct_field
+ key: (_) @keyword)
+
+(tag_name) @function
+
+[
+ "unknown"
+ "any"
+ "struct"
+ "root"
+ "enum"
+ "map"
+] @keyword
+
+(identifier) @type
+
+"?" @type
+
+[
+ "bool"
+ "bytes"
+ "int"
+ "float"
+] @constant.builtin
+
+(doc_comment) @comment.documentation
+
+[
+ ","
+ "|"
+] @punctuation.delimiter
+
+[
+ "["
+ "]"
+ "{"
+ "}"
+] @punctuation.bracket
diff --git a/runtime/queries/ziggy_schema/indents.scm b/runtime/queries/ziggy_schema/indents.scm
new file mode 100644
index 000000000..6f7f7b87c
--- /dev/null
+++ b/runtime/queries/ziggy_schema/indents.scm
@@ -0,0 +1,3 @@
+(struct) @indent.begin
+
+"}" @indent.end