test(proto): Fix for upstream updates

These all seem valid to me; it feels weird that the previous
implementation considered subpackages `variable.member`, and similar
with the option.
This commit is contained in:
Stefan VanBuren 2026-03-13 11:06:01 -04:00
parent fb60ea759a
commit d45b7245b8
No known key found for this signature in database

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";
@ -21,10 +21,6 @@ import "github.com/gogo/protobuf/gogoproto/gogo.proto";
option (gogoproto.sizer_all) = true;
option (gogoproto.marshaler_all) = true;
option (gogoproto.unmarshaler_all.foo) = true;
// ^^^^^^^^^ @variable
// ^^^^^^^^^^^^^^^ @variable.member
// ^ @punctuation.delimiter
// ^^^ @variable.member
message LogContent
//<- @keyword.type
@ -46,7 +42,7 @@ message LogContent
optional JsonFormat json_format = 6 [
// ^^^^^^^^ @keyword.modifier
retention = RETENTION_RUNTIME,
// ^^^^^^^^^^^^^^^^^ @variable
// ^^^^^^^^^^^^^^^^^ @constant
// ^ @punctuation.delimiter
targets = TARGET_TYPE_MESSAGE,
// ^^^^^^^ @property
@ -60,3 +56,4 @@ message LogContent
];
}