aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index 5818875bb..cce4bc551 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -1834,6 +1834,7 @@ AstNode *parse_if_stmt(AstFile *f) {
}
body = parse_block_stmt(f);
+
if (allow_token(f, Token_else)) {
switch (f->cursor[0].kind) {
case Token_if: