Add anonymous using import names with an underscore (#127)

`using import _ "foo.odin"`
This commit is contained in:
gingerBill
2017-10-18 22:29:14 +01:00
parent 6c8c430c2a
commit 71729c2855
2 changed files with 6 additions and 2 deletions

View File

@@ -4349,7 +4349,7 @@ AstNode *parse_import_decl(AstFile *f, bool is_using) {
break;
}
if (is_blank_ident(import_name)) {
if (!is_using && is_blank_ident(import_name)) {
syntax_error(import_name, "Illegal import name: `_`");
}