-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enh(protobuf) Support multiline comments (#2597)
- Loading branch information
Showing
4 changed files
with
15 additions
and
0 deletions.
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
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 |
---|---|---|
@@ -1,7 +1,13 @@ | ||
<span class="hljs-comment">// A Container message</span> | ||
<span class="hljs-class"><span class="hljs-keyword">message</span> <span class="hljs-title">Container</span> </span>{ | ||
<span class="hljs-class"><span class="hljs-keyword">message</span> <span class="hljs-title">Message</span> </span>{ | ||
<span class="hljs-keyword">required</span> <span class="hljs-built_in">int64</span> id = <span class="hljs-number">1</span>; | ||
} | ||
<span class="hljs-keyword">repeated</span> Message messages = <span class="hljs-number">1</span>; | ||
<span class="hljs-keyword">optional</span> <span class="hljs-built_in">int32</span> number = <span class="hljs-number">2</span>; | ||
} | ||
|
||
<span class="hljs-comment">/* | ||
test multiline | ||
comment | ||
*/</span> |
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 |
---|---|---|
@@ -1,7 +1,13 @@ | ||
// A Container message | ||
message Container { | ||
message Message { | ||
required int64 id = 1; | ||
} | ||
repeated Message messages = 1; | ||
optional int32 number = 2; | ||
} | ||
|
||
/* | ||
test multiline | ||
comment | ||
*/ |