From 6b984f87110cec808c97ee21d78f601bd24cedca Mon Sep 17 00:00:00 2001 From: Natapat Samutpong Date: Fri, 1 Apr 2022 15:16:11 +0700 Subject: [PATCH] removed semicolons (if) --- crates/parser/src/lib.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/parser/src/lib.rs b/crates/parser/src/lib.rs index 469d621..fea717e 100644 --- a/crates/parser/src/lib.rs +++ b/crates/parser/src/lib.rs @@ -277,7 +277,6 @@ fn expr_parser() -> impl Parser>, Error = Simple }); let do_block = expr.clone() - .then_ignore(just(Token::SemiColon)) .repeated() .delimited_by( just(Token::KwDo), @@ -299,13 +298,13 @@ fn expr_parser() -> impl Parser>, Error = Simple .then( do_block.clone() .or(expr.clone()) - ).then_ignore(just(Token::SemiColon)) + ) .then_ignore(just(Token::KwElse)) .then( do_block.clone() .or(expr.clone()) - ).then_ignore(just(Token::SemiColon)) + ) .then_ignore(just(Token::KwEnd)) .map(|((cond, then), else_)| {