mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-04 18:40:04 +08:00
83 lines
818 B
Scheme
83 lines
818 B
Scheme
|
[
|
||
|
"enum"
|
||
|
"extend"
|
||
|
"extensions"
|
||
|
"message"
|
||
|
"oneof"
|
||
|
"option"
|
||
|
"reserved"
|
||
|
"service"
|
||
|
"syntax"
|
||
|
"to"
|
||
|
] @keyword
|
||
|
|
||
|
[
|
||
|
"rpc"
|
||
|
] @keyword.function
|
||
|
|
||
|
[
|
||
|
"returns"
|
||
|
] @keyword.return
|
||
|
|
||
|
[
|
||
|
"optional"
|
||
|
"repeated"
|
||
|
"required"
|
||
|
] @type.qualifier
|
||
|
|
||
|
[
|
||
|
"package"
|
||
|
"import"
|
||
|
] @include
|
||
|
|
||
|
[
|
||
|
(key_type)
|
||
|
(type)
|
||
|
(message_name)
|
||
|
(enum_name)
|
||
|
(service_name)
|
||
|
(rpc_name)
|
||
|
(message_or_enum_type)
|
||
|
] @type
|
||
|
|
||
|
(enum_field
|
||
|
(identifier) @constant)
|
||
|
|
||
|
[
|
||
|
(string)
|
||
|
"\"proto3\""
|
||
|
"\"proto2\""
|
||
|
] @string
|
||
|
|
||
|
(int_lit) @number
|
||
|
|
||
|
(float_lit) @float
|
||
|
|
||
|
[
|
||
|
(true)
|
||
|
(false)
|
||
|
] @boolean
|
||
|
|
||
|
(comment) @comment @spell
|
||
|
|
||
|
((comment) @comment.documentation
|
||
|
(#lua-match? @comment.documentation "^/[*][*][^*].*[*]/$"))
|
||
|
|
||
|
[
|
||
|
"("
|
||
|
")"
|
||
|
"["
|
||
|
"]"
|
||
|
"{"
|
||
|
"}"
|
||
|
"<"
|
||
|
">"
|
||
|
] @punctuation.bracket
|
||
|
|
||
|
[
|
||
|
";"
|
||
|
","
|
||
|
] @punctuation.delimiter
|
||
|
|
||
|
"=" @operator
|