mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 19:00:02 -04:00
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:
parent
fb60ea759a
commit
d45b7245b8
1 changed files with 6 additions and 9 deletions
|
|
@ -1,11 +1,11 @@
|
||||||
syntax = "proto2";
|
syntax = "proto2";
|
||||||
// ^^^^^^^^ @string.special
|
// ^^^^^^^^ @string.special.symbol
|
||||||
package sls.asfd.asfd;
|
package sls.asfd.asfd;
|
||||||
// ^^^ @variable
|
// ^^^ @module
|
||||||
// ^ @punctuation.delimiter
|
// ^ @punctuation.delimiter
|
||||||
// ^^^^ @variable.member
|
// ^^^^ @module
|
||||||
// ^ @punctuation.delimiter
|
// ^ @punctuation.delimiter
|
||||||
// ^^^^ @variable.member
|
// ^^^^ @module
|
||||||
// ^ @punctuation.delimiter
|
// ^ @punctuation.delimiter
|
||||||
|
|
||||||
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
|
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.sizer_all) = true;
|
||||||
option (gogoproto.marshaler_all) = true;
|
option (gogoproto.marshaler_all) = true;
|
||||||
option (gogoproto.unmarshaler_all.foo) = true;
|
option (gogoproto.unmarshaler_all.foo) = true;
|
||||||
// ^^^^^^^^^ @variable
|
|
||||||
// ^^^^^^^^^^^^^^^ @variable.member
|
|
||||||
// ^ @punctuation.delimiter
|
|
||||||
// ^^^ @variable.member
|
|
||||||
|
|
||||||
message LogContent
|
message LogContent
|
||||||
//<- @keyword.type
|
//<- @keyword.type
|
||||||
|
|
@ -46,7 +42,7 @@ message LogContent
|
||||||
optional JsonFormat json_format = 6 [
|
optional JsonFormat json_format = 6 [
|
||||||
// ^^^^^^^^ @keyword.modifier
|
// ^^^^^^^^ @keyword.modifier
|
||||||
retention = RETENTION_RUNTIME,
|
retention = RETENTION_RUNTIME,
|
||||||
// ^^^^^^^^^^^^^^^^^ @variable
|
// ^^^^^^^^^^^^^^^^^ @constant
|
||||||
// ^ @punctuation.delimiter
|
// ^ @punctuation.delimiter
|
||||||
targets = TARGET_TYPE_MESSAGE,
|
targets = TARGET_TYPE_MESSAGE,
|
||||||
// ^^^^^^^ @property
|
// ^^^^^^^ @property
|
||||||
|
|
@ -60,3 +56,4 @@ message LogContent
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue