lang: ast: add support for multiple block termination tokens
This commit is contained in:
@@ -40,7 +40,7 @@ static struct token_parse_result parse_linefeed(
|
||||
struct block_parser_state *block_state
|
||||
= (struct block_parser_state *)parser_push_state(
|
||||
ctx, IVY_AST_BLOCK, 0);
|
||||
block_state->s_terminator = IVY_SYM_BANG;
|
||||
block_add_terminator(block_state, IVY_SYM_BANG);
|
||||
|
||||
return PARSE_RESULT(IVY_OK, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user