Skip to content

Commit

Permalink
Merge pull request #9 from vgough/master
Browse files Browse the repository at this point in the history
allow comments and options within rpc definitions
  • Loading branch information
vihangm committed Mar 21, 2016
2 parents 962b8e5 + a1d772b commit 60eb172
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Protobuf.YAML-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ repository:
'2': {name: keyword.source.proto}
end: ;
patterns:
- include: '#comments'
- include: '#strings'
- name: storage.type.proto
match: default|packed|optimize\_for|java\_package|java\_outer\_classname|go\_package|deprecated|lazy|\w+\_api\_version
Expand Down Expand Up @@ -142,6 +143,9 @@ repository:
'5': {name: keyword.source.proto}
'6': {name: keyword.source.proto}
end: \}|;
patterns:
- include: '#comments'
- include: '#option'

storagetypes:
name: storage.type.proto
Expand Down
15 changes: 15 additions & 0 deletions Protobuf.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,10 @@
<string>;</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#comments</string>
</dict>
<dict>
<key>include</key>
<string>#strings</string>
Expand Down Expand Up @@ -425,6 +429,17 @@
</dict>
<key>end</key>
<string>\}|;</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#comments</string>
</dict>
<dict>
<key>include</key>
<string>#option</string>
</dict>
</array>
</dict>
</array>
</dict>
Expand Down

0 comments on commit 60eb172

Please sign in to comment.