forked from Mirrors/helix
feat: add protobuf tree-sitter parser with highlighting queries
parent
1158fc4487
commit
4b45f27a13
@ -0,0 +1 @@
|
||||
Subproject commit a835f2568a8a8cbb7d9c02f2e8bcf98efa745d4e
|
@ -0,0 +1,60 @@
|
||||
[
|
||||
"syntax"
|
||||
"package"
|
||||
"option"
|
||||
"import"
|
||||
"service"
|
||||
"rpc"
|
||||
"returns"
|
||||
"message"
|
||||
"enum"
|
||||
"oneof"
|
||||
"repeated"
|
||||
"reserved"
|
||||
"to"
|
||||
"stream"
|
||||
"extend"
|
||||
] @keyword
|
||||
|
||||
[
|
||||
(keyType)
|
||||
(type)
|
||||
] @type.builtin
|
||||
|
||||
[
|
||||
(mapName)
|
||||
(oneofName)
|
||||
(enumName)
|
||||
(messageName)
|
||||
(extendName)
|
||||
(serviceName)
|
||||
(rpcName)
|
||||
] @type
|
||||
|
||||
[
|
||||
(fieldName)
|
||||
(optionName)
|
||||
] @property
|
||||
(enumVariantName) @type.enum.variant
|
||||
|
||||
(fullIdent) @namespace
|
||||
|
||||
[
|
||||
(intLit)
|
||||
(floatLit)
|
||||
] @number
|
||||
(boolLit) @constant.builtin
|
||||
(strLit) @string
|
||||
|
||||
(constant) @constant
|
||||
|
||||
(comment) @comment
|
||||
|
||||
[
|
||||
"("
|
||||
")"
|
||||
"["
|
||||
"]"
|
||||
"{"
|
||||
"}"
|
||||
] @punctuation.bracket
|
Loading…
Reference in New Issue