Skip to content

Commit

Permalink
Merge pull request #6 from yangsu/master
Browse files Browse the repository at this point in the history
Allow dashes in import statements
  • Loading branch information
vihangm committed Mar 1, 2016
2 parents 66e1640 + 2886fdf commit 1a8fe02
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Protobuf.JSON-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@
"name": "keyword.source.proto"
}
},
"match": "(package|import)(?=(\\s+)([\"]?[A-Za-z][A-Za-z0-9_./]*[\"]?)(;))"
"match": "(package|import)(?=(\\s+)([\"]?[A-Za-z][A-Za-z0-9-_./]*[\"]?)(;))"
}
}
}
}
2 changes: 1 addition & 1 deletion Protobuf.YAML-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ repository:
match: (CODE\_SIZE|SPEED)

packaging:
match: (package|import)(?=(\s+)(["]?[A-Za-z][A-Za-z0-9_./]*["]?)(;))
match: (package|import)(?=(\s+)(["]?[A-Za-z][A-Za-z0-9-_./]*["]?)(;))
captures:
'1': {name: keyword.source.proto}
'2': {name: entity.name.tag}
Expand Down
2 changes: 1 addition & 1 deletion Protobuf.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@
</dict>
</dict>
<key>match</key>
<string>(package|import)(?=(\s+)(["]?[A-Za-z][A-Za-z0-9_./]*["]?)(;))</string>
<string>(package|import)(?=(\s+)(["]?[A-Za-z][A-Za-z0-9-_./]*["]?)(;))</string>
</dict>
<key>service</key>
<dict>
Expand Down

0 comments on commit 1a8fe02

Please sign in to comment.