summaryrefslogtreecommitdiff
path: root/dhall_syntax/src/parser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'dhall_syntax/src/parser.rs')
-rw-r--r--dhall_syntax/src/parser.rs22
1 files changed, 12 insertions, 10 deletions
diff --git a/dhall_syntax/src/parser.rs b/dhall_syntax/src/parser.rs
index 53fd68a..b70a236 100644
--- a/dhall_syntax/src/parser.rs
+++ b/dhall_syntax/src/parser.rs
@@ -726,19 +726,21 @@ make_parser! {
});
rule!(http_raw<URL<ParsedExpr>>; children!(
- [scheme(sch), authority(auth), path(p)] => URL {
+ [scheme(sch), authority(auth), path(file_path)] => URL {
scheme: sch,
authority: auth,
- path: p,
+ path: File { file_path },
query: None,
headers: None,
},
- [scheme(sch), authority(auth), path(p), query(q)] => URL {
- scheme: sch,
- authority: auth,
- path: p,
- query: Some(q),
- headers: None,
+ [scheme(sch), authority(auth), path(file_path), query(q)] => {
+ URL {
+ scheme: sch,
+ authority: auth,
+ path: File { file_path },
+ query: Some(q),
+ headers: None,
+ }
},
));
@@ -791,8 +793,8 @@ make_parser! {
[http(url)] => {
ImportLocation::Remote(url)
},
- [local((prefix, p))] => {
- ImportLocation::Local(prefix, p)
+ [local((prefix, file_path))] => {
+ ImportLocation::Local(prefix, File { file_path })
},
));