This commit is contained in:
Stefan VanBuren 2026-04-03 17:36:05 +03:00 committed by GitHub
commit 2e20d730eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 58 additions and 22 deletions

View file

@ -1,11 +1,11 @@
syntax = "proto2";
// ^^^^^^^^ @string.special
// ^^^^^^^^ @string.special.symbol
package sls.asfd.asfd;
// ^^^ @variable
// ^^^ @module
// ^ @punctuation.delimiter
// ^^^^ @variable.member
// ^^^^ @module
// ^ @punctuation.delimiter
// ^^^^ @variable.member
// ^^^^ @module
// ^ @punctuation.delimiter
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
@ -19,7 +19,11 @@ 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
@ -30,12 +34,12 @@ message LogContent
//<- @keyword.type
{
required string Key = 1;
// ^^^^^^ @type
// ^^^^^^ @type.builtin
// ^^^ @property
// ^ @operator
// ^ @number
required string Value = 2;
// ^^^^^^ @type
// ^^^^^^ @type.builtin
// ^^^^^ @property
required CustomType Value = 2;
// ^^^^^^^^ @keyword.modifier
@ -46,7 +50,7 @@ message LogContent
optional JsonFormat json_format = 6 [
// ^^^^^^^^ @keyword.modifier
retention = RETENTION_RUNTIME,
// ^^^^^^^^^^^^^^^^^ @variable
// ^^^^^^^^^^^^^^^^^ @constant
// ^ @punctuation.delimiter
targets = TARGET_TYPE_MESSAGE,
// ^^^^^^^ @property
@ -60,3 +64,4 @@ message LogContent
];
}