commit e251e54a0a02f44dd5d5c48814965c97fc276c47 parent 42474ce54d2b7b4ff125fdb734a0b9235d9b2109 Author: Nihal Jere <nihal@nihaljere.xyz> Date: Sun, 5 Dec 2021 14:17:00 -0600 fix block curly bracket handling Diffstat:
M | main.c | | | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/main.c b/main.c @@ -416,8 +416,10 @@ parse(struct token **tok) } } - if (curlies && (*tok)->type == TOK_RCURLY) + if (curlies) { + expect(*tok, TOK_RCURLY); *tok = (*tok)->next; + } return items; }