Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/textproto/highlights.scm')
-rw-r--r--runtime/queries/textproto/highlights.scm22
1 files changed, 22 insertions, 0 deletions
diff --git a/runtime/queries/textproto/highlights.scm b/runtime/queries/textproto/highlights.scm
new file mode 100644
index 00000000..766897f4
--- /dev/null
+++ b/runtime/queries/textproto/highlights.scm
@@ -0,0 +1,22 @@
+(string) @string
+
+(field_name) @variable.other.member
+
+(comment) @comment
+
+(number) @constant.numeric
+; covers e.g. booleans and "inf"
+(scalar_value (identifier)) @constant
+; Covers "-inf"
+(scalar_value (signed_identifier)) @constant.numeric
+
+[
+ (open_squiggly)
+ (close_squiggly)
+ (open_square)
+ (close_square)
+ (open_arrow)
+ (close_arrow)
+] @punctuation.bracket
+
+"," @punctuation.delimiter