Sfoglia il codice sorgente

Allow empty lines after postfix apply

David Peter 1 anno fa
parent
commit
49510ac6c7
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      numbat/src/parser.rs

+ 1 - 0
numbat/src/parser.rs

@@ -883,6 +883,7 @@ impl<'a> Parser<'a> {
         let mut expr = self.condition()?;
         let mut full_span = expr.full_span();
         while self.match_exact(TokenKind::PostfixApply).is_some() {
+            self.skip_empty_lines();
             match self.call()? {
                 Expression::Identifier(span, ident) => {
                     full_span = full_span.extend(&span);