nvim-treesitter/runtime/queries/sproto/highlights.scm
2025-08-12 10:24:58 +02:00

47 lines
540 B
Scheme

(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