Require import module names to be identifiers
authorMikko Rasa <tdb@tdb.fi>
Fri, 21 Jun 2019 10:25:33 +0000 (13:25 +0300)
committerMikko Rasa <tdb@tdb.fi>
Fri, 21 Jun 2019 11:54:28 +0000 (14:54 +0300)
source/programparser.cpp

index 07fa19de655e774aa0765e5bd20f3c0d14f58d48..393936624556df0a0c9fe5b2fef6a8576a1f5b0c 100644 (file)
@@ -522,7 +522,7 @@ RefPtr<Import> ProgramParser::parse_import()
 
        expect("import");
        RefPtr<Import> import = new Import;
-       import->module = parse_token();
+       import->module = expect_identifier();
        expect(";");
        return import;
 }