aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/textproto/highlights.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/textproto/highlights.scm')
-rw-r--r--runtime/queries/textproto/highlights.scm23
1 files changed, 23 insertions, 0 deletions
diff --git a/runtime/queries/textproto/highlights.scm b/runtime/queries/textproto/highlights.scm
new file mode 100644
index 000000000..527af0398
--- /dev/null
+++ b/runtime/queries/textproto/highlights.scm
@@ -0,0 +1,23 @@
+(string) @string
+
+(field_name) @variable.member
+
+(comment) @comment @spell
+
+(number) @number
+
+; For stuff like "inf" and "-inf".
+(scalar_value
+ [
+ (identifier)
+ (signed_identifier)
+ ]) @number
+
+[
+ (open_squiggly)
+ (close_squiggly)
+ (open_square)
+ (close_square)
+ (open_arrow)
+ (close_arrow)
+] @punctuation.bracket