summaryrefslogtreecommitdiff
path: root/dhall_syntax/src/parser.rs
diff options
context:
space:
mode:
authorNadrieril2019-08-06 20:38:06 +0200
committerNadrieril2019-08-06 21:42:16 +0200
commit482be29e0f03e10c2469ef80bdd6ac7593207dc5 (patch)
tree7af9fba1964751870f4694b27304dde556590668 /dhall_syntax/src/parser.rs
parent2551e6f91110bfe385fa65dd63e576df637c26fa (diff)
RFC3986 URLs
Diffstat (limited to '')
-rw-r--r--dhall_syntax/src/parser.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/dhall_syntax/src/parser.rs b/dhall_syntax/src/parser.rs
index 2450c76..2c0cee9 100644
--- a/dhall_syntax/src/parser.rs
+++ b/dhall_syntax/src/parser.rs
@@ -697,6 +697,7 @@ make_parser! {
));
token_rule!(Text<()>);
+ token_rule!(Location<()>);
rule!(import<ParsedSubExpr> as expression; span; children!(
[import_hashed(location_hashed)] => {
@@ -711,6 +712,12 @@ make_parser! {
location_hashed
}))
},
+ [import_hashed(location_hashed), Location(_)] => {
+ spanned(span, Embed(Import {
+ mode: ImportMode::Location,
+ location_hashed
+ }))
+ },
));
token_rule!(lambda<()>);