From 61060096bdedbecd38a7100d83d05eb7fe1cb7c3 Mon Sep 17 00:00:00 2001 From: Kevin Brown Date: Fri, 15 May 2020 22:20:51 -0400 Subject: [PATCH] Properly split up line blocks from line block pairs This is necessary for us to do proper pairing of line blocks since otherwise the rejection would disallow line blocks of any type. --- grammar.ebnf | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/grammar.ebnf b/grammar.ebnf index 4707c162..95a00351 100644 --- a/grammar.ebnf +++ b/grammar.ebnf @@ -89,8 +89,18 @@ block_close_symbol line_block_expression = - | ( start:line_block_start contents:expressions end:line_block_end ) - | block:line_block_start + | line_block_expression_pair + | line_block_expression_single + ; + +line_block_expression_pair + = + start:line_block_start contents:expressions end:line_block_end + ; + +line_block_expression_single + = + block:line_block_start ; line_block_start -- 2.47.3