mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Now need to wait for coder3101/tree-sitter-proto#23 to land to really sync this with upstream.
67 lines
2.3 KiB
Protocol Buffer
67 lines
2.3 KiB
Protocol Buffer
syntax = "proto2";
|
|
// ^^^^^^^^ @string.special.symbol
|
|
package sls.asfd.asfd;
|
|
// ^^^ @module
|
|
// ^ @punctuation.delimiter
|
|
// ^^^^ @module
|
|
// ^ @punctuation.delimiter
|
|
// ^^^^ @module
|
|
// ^ @punctuation.delimiter
|
|
|
|
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
|
|
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
|
|
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
|
|
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
|
|
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
|
|
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
|
|
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
|
|
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
|
|
//<- @keyword.import
|
|
|
|
option (gogoproto.sizer_all) = true;
|
|
// ^^^^^^^^^ @variable
|
|
// ^^^^^^^^^ @variable.member
|
|
option (gogoproto.marshaler_all) = true;
|
|
// ^^^^^^^^^ @variable
|
|
// ^^^^^^^^^^^^^ @variable.member
|
|
option (gogoproto.unmarshaler_all.foo) = true;
|
|
// ^^^^^^^^^ @variable
|
|
// ^^^^^^^^^^^^^^^ @variable.member
|
|
// ^ @punctuation.delimiter
|
|
// ^^^ @variable.member
|
|
|
|
message LogContent
|
|
//<- @keyword.type
|
|
{
|
|
required string Key = 1;
|
|
// ^^^^^^ @type.builtin
|
|
// ^^^ @property
|
|
// ^ @operator
|
|
// ^ @number
|
|
required string Value = 2;
|
|
// ^^^^^^ @type.builtin
|
|
// ^^^^^ @property
|
|
required CustomType Value = 2;
|
|
// ^^^^^^^^ @keyword.modifier
|
|
// ^^^^^^^^^^ @type
|
|
|
|
optional string cgroup_pids_mount = 76 [default = "/sys/fs/cgroup/pids"];
|
|
|
|
optional JsonFormat json_format = 6 [
|
|
// ^^^^^^^^ @keyword.modifier
|
|
retention = RETENTION_RUNTIME,
|
|
// ^^^^^^^^^^^^^^^^^ @constant
|
|
// ^ @punctuation.delimiter
|
|
targets = TARGET_TYPE_MESSAGE,
|
|
// ^^^^^^^ @property
|
|
targets = TARGET_TYPE_ENUM,
|
|
targets = TARGET_TYPE_FILE,
|
|
edition_defaults = { edition: "2023", value: "ALLOW" }
|
|
// ^^^^^^^ @property
|
|
// ^ @punctuation.delimiter
|
|
// ^ @punctuation.delimiter
|
|
// ^ @punctuation.bracket
|
|
];
|
|
}
|
|
|
|
|