Skip to content

Commit

Permalink
Treat enum names same as message names (#14)
Browse files Browse the repository at this point in the history
This will allow goto_definition command to work to enum as well as to messages
  • Loading branch information
kojoru authored and vihangm committed Jul 13, 2017
1 parent f5867fa commit ab6a54d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Protobuf.YAML-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ repository:
begin: (enum)(\s+)([A-Za-z][A-Za-z0-9_]*)(\s*)(\{)?
beginCaptures:
'1': {name: keyword.source.proto}
'3': {name: entity.name.class.proto}
'3': {name: entity.name.class.message.proto}
end: \}
patterns:
- include: '#option'
Expand Down
2 changes: 1 addition & 1 deletion Protobuf.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
<key>3</key>
<dict>
<key>name</key>
<string>entity.name.class.proto</string>
<string>entity.name.class.message.proto</string>
</dict>
</dict>
<key>end</key>
Expand Down

0 comments on commit ab6a54d

Please sign in to comment.