From 5a38ff8f41b6042d8facdfd7c23e17a21dcd9b80 Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Sat, 20 Nov 2021 22:36:00 -0800 Subject: [PATCH] Fix parameterized block --- schala-lang/src/parsing/combinator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schala-lang/src/parsing/combinator.rs b/schala-lang/src/parsing/combinator.rs index 4ec0baa..f8ba61c 100644 --- a/schala-lang/src/parsing/combinator.rs +++ b/schala-lang/src/parsing/combinator.rs @@ -156,7 +156,7 @@ fn block_template<'a, O, O2>( ) -> impl FnMut(Span<'a>) -> IResult, Vec, VerboseError>> { delimited( pair(tok(char('{')), many0(statement_delimiter)), - separated_list0(many1(statement_delimiter), input_parser), + separated_list0(delimiter, input_parser), pair(many0(statement_delimiter), tok(char('}'))), ) }