comparison dmd/parse.c @ 1259:dda95755f63d

Fix parsing of import statements to only pass valid identifiers to Import constructor. Fixes #264.
author Christian Kamm <kamm incasoftware de>
date Thu, 23 Apr 2009 20:44:55 +0200
parents e961851fb8be
children 8026319762be
comparison
equal deleted inserted replaced
1258:192529570813 1259:dda95755f63d
1638 } 1638 }
1639 id = token.ident; 1639 id = token.ident;
1640 nextToken(); 1640 nextToken();
1641 } 1641 }
1642 1642
1643 s = new Import(loc, a, token.ident, aliasid, isstatic); 1643 s = new Import(loc, a, id, aliasid, isstatic);
1644 decldefs->push(s); 1644 decldefs->push(s);
1645 1645
1646 /* Look for 1646 /* Look for
1647 * : alias=name, alias=name; 1647 * : alias=name, alias=name;
1648 * syntax. 1648 * syntax.