From ca52c492bd4f2fa1a1db3a85e50eaf7c43474830 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 21 Jun 2019 13:25:33 +0300 Subject: [PATCH] Require import module names to be identifiers --- source/programparser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/programparser.cpp b/source/programparser.cpp index 07fa19de..39393662 100644 --- a/source/programparser.cpp +++ b/source/programparser.cpp @@ -522,7 +522,7 @@ RefPtr ProgramParser::parse_import() expect("import"); RefPtr import = new Import; - import->module = parse_token(); + import->module = expect_identifier(); expect(";"); return import; } -- 2.45.2