mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -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";
|
||||
// ^^^^^^^^ @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
|
|||
];
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue