nvim-treesitter/runtime/queries/sproto/highlights.scm

48 lines
540 B
Scheme
Raw Normal View History

2025-08-11 15:21:23 +08:00
(comment) @comment @spell
[
"."
":"
] @punctuation.delimiter
"*" @operator
[
"request"
"response"
] @keyword
(type_definition
name: (identifier) @type)
(nested_type_definition
name: (identifier) @type)
(type_specifier) @type
[
"integer"
"boolean"
"string"
"binary"
"double"
] @type.builtin
(protocol_definition
name: (identifier) @function)
(field_definition
name: (identifier) @property)
(map_specifier
key: (identifier) @property)
(integer) @number
[
"("
")"
"{"
"}"
] @punctuation.bracket