rename "use" to "import"

This commit is contained in:
Andrew Kelley
2016-01-15 18:45:52 -07:00
parent 86f55bce53
commit dc162c7f83
12 changed files with 59 additions and 94 deletions

View File

@@ -2542,7 +2542,7 @@ Use : many(Directive) token(Use) token(String) token(Semicolon)
*/
static AstNode *ast_parse_use(ParseContext *pc, int *token_index) {
Token *use_kw = &pc->tokens->at(*token_index);
if (use_kw->id != TokenIdKeywordUse)
if (use_kw->id != TokenIdKeywordImport)
return nullptr;
*token_index += 1;