From: Mikko Rasa Date: Fri, 21 Jun 2019 10:25:33 +0000 (+0300) Subject: Require import module names to be identifiers X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=ca52c492bd4f2fa1a1db3a85e50eaf7c43474830;p=libs%2Fgl.git Require import module names to be identifiers --- 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; }