diff options
-rw-r--r-- | dhall_core/src/parser.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dhall_core/src/parser.rs b/dhall_core/src/parser.rs index 016ad6a..1e47c16 100644 --- a/dhall_core/src/parser.rs +++ b/dhall_core/src/parser.rs @@ -750,7 +750,8 @@ make_parser! { }, )); - rule!(first_application_expression<ParsedExpr<'a>> as expression; span; children!( + rule!(first_application_expression<ParsedExpr<'a>> as expression; span; + children!( [expression(e)] => e, [Some_(()), expression(e)] => { spanned(span, NEOptionalLit(rc(e))) |