mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 13:30:01 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
c13e28f894
commit
2c8f2f2fad
829 changed files with 4905 additions and 8010 deletions
5
runtime/queries/proto/folds.scm
Normal file
5
runtime/queries/proto/folds.scm
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
[
|
||||
(enum)
|
||||
(message)
|
||||
(service)
|
||||
] @fold
|
||||
82
runtime/queries/proto/highlights.scm
Normal file
82
runtime/queries/proto/highlights.scm
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
[
|
||||
"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
|
||||
Loading…
Add table
Add a link
Reference in a new issue