summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-04-05 02:47:20 -0400
committerOri Bernstein <ori@eigenstate.org>2015-04-05 02:47:20 -0400
commitb2a4bb910a7d0cee34dfd860896e75be5e1abf1d (patch)
tree2342326ac7fbce2e12070d6f1a7dd5558235df09
parente74c5da9487abb0eafb1f5196847d057a9926d54 (diff)
downloadmbld-b2a4bb910a7d0cee34dfd860896e75be5e1abf1d.tar.gz
Print correct file in syntax errors.
-rw-r--r--main.myr2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.myr b/main.myr
index b10e738..efe1f4b 100644
--- a/main.myr
+++ b/main.myr
@@ -114,7 +114,7 @@ const mkparser = {path
p = std.zalloc()
p.line = 1
- p.fname = "cli"
+ p.fname = std.sldup(path)
p.gensrc = std.mkht(std.strhash, std.streq)
-> p
}