diff options
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) |