aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index aff7c6bc7..c81827aa3 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -1502,6 +1502,10 @@ bool is_semicolon_optional_for_node(AstFile *f, Ast *s) {
return false;
}
+ if (build_context.insert_semicolon) {
+ return true;
+ }
+
switch (s->kind) {
case Ast_EmptyStmt:
case Ast_BlockStmt: