From 4b99a3fb46191a83fa8551f21b98cff689bbb338 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Thu, 21 Mar 2019 22:08:23 +0100 Subject: Improve import handling in parser --- dhall_parser/src/dhall.abnf | 4 +++- dhall_parser/src/dhall.pest.visibility | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'dhall_parser') diff --git a/dhall_parser/src/dhall.abnf b/dhall_parser/src/dhall.abnf index d803770..c5c9a84 100644 --- a/dhall_parser/src/dhall.abnf +++ b/dhall_parser/src/dhall.abnf @@ -378,8 +378,10 @@ quoted-path-character = ; %x2F = "/" / %x30-10FFFF +unquoted-path-component = 1*path-character +quoted-path-component = 1*quoted-path-character -path-component = "/" ( 1*path-character / %x22 1*quoted-path-character %x22 ) +path-component = "/" ( unquoted-path-component / %x22 quoted-path-component %x22 ) path = 1*path-component diff --git a/dhall_parser/src/dhall.pest.visibility b/dhall_parser/src/dhall.pest.visibility index 8610f7b..00075d3 100644 --- a/dhall_parser/src/dhall.pest.visibility +++ b/dhall_parser/src/dhall.pest.visibility @@ -92,7 +92,7 @@ identifier_raw identifier # path_character # quoted_path_character -# path_component +path_component path # local_raw scheme -- cgit v1.2.3