diff options
author | Nadrieril | 2019-03-09 00:42:46 +0100 |
---|---|---|
committer | Nadrieril | 2019-03-09 00:43:13 +0100 |
commit | 505e6a34cc5aadac1831d31ef64b94b61c2ace13 (patch) | |
tree | 1cca4b507552df613c9852d755e9ada8dee67d7d /dhall_core/src/parser.rs | |
parent | c6aafe818ca56ec8bc6d3cd27824eba0a2d6b874 (diff) |
First import works !
Diffstat (limited to '')
-rw-r--r-- | dhall_core/src/parser.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dhall_core/src/parser.rs b/dhall_core/src/parser.rs index 9d0a88b..164d410 100644 --- a/dhall_core/src/parser.rs +++ b/dhall_core/src/parser.rs @@ -486,7 +486,9 @@ rule!(integer_literal_raw<core::Integer>; } ); -rule!(path<PathBuf>; captured_str!(s) => s.into()); +rule!(path<PathBuf>; + captured_str!(s) => (".".to_owned() + s).into() +); rule!(parent_path<(FilePrefix, PathBuf)>; children!(p: path) => (FilePrefix::Parent, p) |