Skip to content

Commit cf01599

Browse files
committed
No longer allow empty task with parameter (empty task without parameter was already forbidden).
1 parent d063d04 commit cf01599

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

parser.c

+4
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,10 @@ ctr_tnode* ctr_cparse_block() {
309309
}
310310
t = ctr_clex_tok();
311311
}
312+
if (t == CTR_TOKEN_BLOCKCLOSE) {
313+
ctr_cparse_emit_error_unexpected( t, NULL );
314+
return NULL;
315+
}
312316
first = 1;
313317
while((first || t == CTR_TOKEN_DOT)) {
314318
ctr_tlistitem* codeListItem;

0 commit comments

Comments
 (0)