mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -04:00
parent
9fdd6765fc
commit
1d5e4f3aa1
3 changed files with 77 additions and 0 deletions
|
|
@ -1050,6 +1050,16 @@ list.m68k = {
|
||||||
filetype = "asm68k",
|
filetype = "asm68k",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
list.proto = {
|
||||||
|
install_info = {
|
||||||
|
url = "https://github.com/mitchellh/tree-sitter-proto",
|
||||||
|
branch = "main",
|
||||||
|
files = { "src/parser.c" },
|
||||||
|
},
|
||||||
|
maintainers = { "@fsouza" },
|
||||||
|
filetype = "proto",
|
||||||
|
}
|
||||||
|
|
||||||
local M = {
|
local M = {
|
||||||
list = list,
|
list = list,
|
||||||
filetype_to_parsername = filetype_to_parsername,
|
filetype_to_parsername = filetype_to_parsername,
|
||||||
|
|
|
||||||
5
queries/proto/folds.scm
Normal file
5
queries/proto/folds.scm
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
[
|
||||||
|
(enum)
|
||||||
|
(message)
|
||||||
|
(service)
|
||||||
|
] @fold
|
||||||
62
queries/proto/highlights.scm
Normal file
62
queries/proto/highlights.scm
Normal file
|
|
@ -0,0 +1,62 @@
|
||||||
|
[
|
||||||
|
"syntax"
|
||||||
|
"package"
|
||||||
|
"option"
|
||||||
|
"import"
|
||||||
|
"service"
|
||||||
|
"rpc"
|
||||||
|
"returns"
|
||||||
|
"message"
|
||||||
|
"enum"
|
||||||
|
"oneof"
|
||||||
|
"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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue