helix-mirror/runtime/queries/protobuf/highlights.scm
2021-08-20 19:52:21 +09:00

60 lines
615 B
Scheme

[
"syntax"
"package"
"option"
"import"
"service"
"rpc"
"returns"
"message"
"enum"
"oneof"
"repeated"
"reserved"
"to"
"stream"
"extend"
"optional"
] @keyword
[
(keyType)
(type)
] @type.builtin
[
(mapName)
(enumName)
(messageName)
(extendName)
(serviceName)
(rpcName)
] @type
[
(fieldName)
(optionName)
] @property
(enumVariantName) @type.enum.variant
(fullIdent) @namespace
[
(intLit)
(floatLit)
] @number
(boolLit) @constant.builtin
(strLit) @string
(constant) @constant
(comment) @comment
[
"("
")"
"["
"]"
"{"
"}"
] @punctuation.bracket