aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2024-08-26 22:38:13 +0100
committerGitHub <noreply@github.com>2024-08-26 22:38:13 +0100
commitade4e312fe271030a71baf1291e87728f75cc559 (patch)
treef1cc79d447110e9b491ba005c475e67ba55563f5 /src/parser.cpp
parent12bd07d2df1e823687ad967e146c22141c651f5d (diff)
parentdd86a8f01398a2da08f8eb4495049f081901332c (diff)
Merge pull request #4154 from avanspector/master
Delay lexical checking for foreign blocks that are in file scope
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 b250a3163..e3143dd33 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -6446,7 +6446,7 @@ gb_internal bool parse_file(Parser *p, AstFile *f) {
}
f->total_file_decl_count += calc_decl_count(stmt);
- if (stmt->kind == Ast_WhenStmt || stmt->kind == Ast_ExprStmt || stmt->kind == Ast_ImportDecl) {
+ if (stmt->kind == Ast_WhenStmt || stmt->kind == Ast_ExprStmt || stmt->kind == Ast_ImportDecl || stmt->kind == Ast_ForeignBlockDecl) {
f->delayed_decl_count += 1;
}
}