Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/protobuf/highlights.scm')
-rw-r--r--runtime/queries/protobuf/highlights.scm46
1 files changed, 22 insertions, 24 deletions
diff --git a/runtime/queries/protobuf/highlights.scm b/runtime/queries/protobuf/highlights.scm
index 6deee7df..15dd7bb3 100644
--- a/runtime/queries/protobuf/highlights.scm
+++ b/runtime/queries/protobuf/highlights.scm
@@ -1,5 +1,6 @@
[
"syntax"
+ "edition"
"package"
"option"
"import"
@@ -7,44 +8,45 @@
"rpc"
"returns"
"message"
+ "map"
"enum"
"oneof"
"repeated"
+ "optional"
+ "required"
"reserved"
"to"
"stream"
"extend"
- "optional"
] @keyword
[
- (keyType)
+ (key_type)
(type)
+ (message_or_enum_type)
] @type.builtin
[
- (mapName)
- (enumName)
- (messageName)
- (extendName)
- (serviceName)
- (rpcName)
+ (enum_name)
+ (message_name)
+ (service_name)
+ (rpc_name)
] @type
[
- (fieldName)
- (optionName)
+ (field_name)
+ (option_name)
] @variable.other.member
-(enumVariantName) @type.enum.variant
+(enum_variant_name) @type.enum.variant
-(fullIdent) @namespace
+(full_ident) @namespace
-(intLit) @constant.numeric.integer
-(floatLit) @constant.numeric.float
-(boolLit) @constant.builtin.boolean
-(strLit) @string
+(int_lit) @constant.numeric.integer
+(float_lit) @constant.numeric.float
+(bool) @constant.builtin.boolean
+(string) @string
-(constant) @constant
+(block_lit) @constant
(comment) @comment
@@ -55,12 +57,8 @@
"]"
"{"
"}"
-] @punctuation.bracket
+] @punctuation.bracket
-[
- "="
-] @operator
+"=" @operator
-[
- ";"
-] @punctuation.delimiter
+";" @punctuation.delimiter