diff options
| author | gingerBill <bill@gingerbill.org> | 2017-10-18 22:29:14 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2017-10-18 22:29:14 +0100 |
| commit | 71729c2855f3a13f6809e1bed92c31ca87623140 (patch) | |
| tree | 8438a03278e11da9cb4588cd09534bdc84bea55a /src/parser.cpp | |
| parent | 6c8c430c2a5af0a04a70cb4e9bf79c22f6554ab9 (diff) | |
Add anonymous `using import` names with an underscore (#127)
`using import _ "foo.odin"`
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index d1b9ff8d5..4c5002777 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -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: `_`"); } |