nvim-treesitter/queries/proto/highlights.scm
Matthias Vogelgesang f051eb2b26 highlights(proto): highlight optional
`optional` came back with protobuf 3.15 as a valid modifier so highlight
it the same way as `repeated`.
2022-10-04 10:09:09 -04:00

63 lines
584 B
Scheme

[
"syntax"
"package"
"option"
"import"
"service"
"rpc"
"returns"
"message"
"enum"
"oneof"
"optional"
"repeated"
"reserved"
"to"
] @keyword
[
(key_type)
(type)
(message_name)
(enum_name)
(service_name)
(rpc_name)
(message_or_enum_type)
] @type
(enum_field
(identifier) @constant)
[
(string)
"\"proto3\""
] @string
(int_lit) @number
(float_lit) @float
[
(true)
(false)
] @boolean
(comment) @comment
[
"("
")"
"["
"]"
"{"
"}"
"<"
">"
] @punctuation.bracket
[
";"
","
] @punctuation.delimiter
"=" @operator