Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion protobuf/protobuf2/Protobuf2.g4
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ constant

// not specified in specification but used in tests
blockLit
: LC (ident COLON constant)* RC
: LC (ident COLON constant (COMMA)?)* RC
;

emptyStatement_
Expand Down
22 changes: 22 additions & 0 deletions protobuf/protobuf2/examples/block.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
syntax = 'proto2';

// Extracted from google/protobuf/descriptor.proto
message FeatureSet {
enum FieldPresence {
FIELD_PRESENCE_UNKNOWN = 0;
EXPLICIT = 1;
IMPLICIT = 2;
LEGACY_REQUIRED = 3;
}
optional FieldPresence field_presence = 1 [
retention = RETENTION_RUNTIME,
targets = TARGET_TYPE_FIELD,
targets = TARGET_TYPE_FILE,
feature_support = {
edition_introduced: EDITION_2023,
},
edition_defaults = { edition: EDITION_LEGACY, value: "EXPLICIT" },
edition_defaults = { edition: EDITION_PROTO3, value: "IMPLICIT" },
edition_defaults = { edition: EDITION_2023, value: "EXPLICIT" }
];
}
Loading