aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-05-10 13:55:15 +0100
committergingerBill <bill@gingerbill.org>2024-05-10 13:55:15 +0100
commit710bb4369f45ee6dfa8b66e67e25d91a15000a65 (patch)
treef7db515136c6d8279c99e508df9099de57253f2d /src/parser.cpp
parent944fdd11f2fd3a9fa887ceea0f104acdb225eb2b (diff)
Fix #3567
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index 6e859fe32..ee3c56daf 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -3883,10 +3883,12 @@ gb_internal Ast *parse_proc_type(AstFile *f, Token proc_token) {
expect_token(f, Token_OpenParen);
+ f->expr_level += 1;
params = parse_field_list(f, nullptr, FieldFlag_Signature, Token_CloseParen, true, true);
if (file_allow_newline(f)) {
skip_possible_newline(f);
}
+ f->expr_level -= 1;
expect_token_after(f, Token_CloseParen, "parameter list");
results = parse_results(f, &diverging);