-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1ac390a
commit 2e5aef3
Showing
3 changed files
with
112 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
([ | ||
(enum) | ||
(message) | ||
] @context) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
|
||
syntax = "proto2" | ||
|
||
package test; | ||
|
||
// {{TEST}} | ||
enum SomeEnum { // {{CONTEXT}} | ||
UNDEFINED = 0 | ||
|
||
FIRST = 1 | ||
|
||
SECOND = 2 | ||
|
||
THIRD = 3 | ||
|
||
FORTH = 4 | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
FIFTH = 5 | ||
|
||
SIXTH = 6 | ||
|
||
SEVENTH = 7 | ||
|
||
EIGHTH = 8 | ||
|
||
NINTH = 9 | ||
// {{CURSOR}} | ||
} | ||
|
||
|
||
|
||
// {{TEST}} | ||
message SomeMessage { // {{CONTEXT}} | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
optional SomeEnum someEnum = 1; | ||
|
||
optional string name = 2; | ||
|
||
optional int32 id = 3; | ||
|
||
optional int32 age = 4; | ||
|
||
optional bool isMale = 5; | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
optional int32 height = 6; | ||
|
||
optional int32 weight = 7; | ||
|
||
optional int32 score = 8; | ||
|
||
optional int32 level = 9; | ||
|
||
|
||
|
||
|
||
{{CURSOR}} | ||
} | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|