2021-08-18 12:54:47 +02:00
|
|
|
[
|
|
|
|
"syntax"
|
|
|
|
"package"
|
|
|
|
"option"
|
|
|
|
"import"
|
|
|
|
"service"
|
|
|
|
"rpc"
|
|
|
|
"returns"
|
|
|
|
"message"
|
|
|
|
"enum"
|
|
|
|
"oneof"
|
|
|
|
"repeated"
|
|
|
|
"reserved"
|
|
|
|
"to"
|
|
|
|
"stream"
|
|
|
|
"extend"
|
2021-08-19 22:39:15 +02:00
|
|
|
"optional"
|
2021-08-18 12:54:47 +02:00
|
|
|
] @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
|