diff --git a/Protobuf.JSON-tmLanguage b/Protobuf.JSON-tmLanguage index 854ec7f..85987f4 100644 --- a/Protobuf.JSON-tmLanguage +++ b/Protobuf.JSON-tmLanguage @@ -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-_./]*[\"]?)(;))" } } -} \ No newline at end of file +} diff --git a/Protobuf.YAML-tmLanguage b/Protobuf.YAML-tmLanguage index 8293d97..421fcaa 100644 --- a/Protobuf.YAML-tmLanguage +++ b/Protobuf.YAML-tmLanguage @@ -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} diff --git a/Protobuf.tmLanguage b/Protobuf.tmLanguage index ec1172a..9b07c57 100644 --- a/Protobuf.tmLanguage +++ b/Protobuf.tmLanguage @@ -348,7 +348,7 @@ match - (package|import)(?=(\s+)(["]?[A-Za-z][A-Za-z0-9_./]*["]?)(;)) + (package|import)(?=(\s+)(["]?[A-Za-z][A-Za-z0-9-_./]*["]?)(;)) service