aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index adcbeae830..2b2e8736be 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -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;