mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 19:30:02 -04:00
feat(sproto): add parser
This commit is contained in:
parent
9866036ec3
commit
13e3ce3bf4
6 changed files with 74 additions and 0 deletions
47
runtime/queries/sproto/highlights.scm
Normal file
47
runtime/queries/sproto/highlights.scm
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
(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
|
||||
Loading…
Add table
Add a link
Reference in a new issue