summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorWormHeamer2025-08-10 22:55:35 -0400
committerWormHeamer2025-08-10 22:55:35 -0400
commit1fd3086b919d01eeaf12978d74e9d3e073509a2e (patch)
tree9946a620045923bba8d9ae30d2d3386273f10f98 /main.c
parent57966ce12201c94847bc2cc699055efcafd255f8 (diff)
allow func foo T {}
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 1d35ce9..6134efa 100644
--- a/main.c
+++ b/main.c
@@ -481,7 +481,7 @@ Proc *parse_proc(Lexer *l, Unit *u) {
lex_expect(l, TM_IDENT);
proc_init(proc, l->ident);
scope_push(&proc->scope, proc);
- lex_expect(l, TM_LPAREN | TM_LBRACE);
+ lex_next(l);
if (l->tok == TOK_LPAREN) {
parse_args_list(l, proc);
}