From 71729c2855f3a13f6809e1bed92c31ca87623140 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Wed, 18 Oct 2017 22:29:14 +0100 Subject: Add anonymous `using import` names with an underscore (#127) `using import _ "foo.odin"` --- src/parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/parser.cpp') 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: `_`"); } -- cgit v1.2.3