hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 678d2d5c594d9659050c2e337084aab1944f8be3
parent 2677fd899d88fbd919c0cb9f60c8b800998d4347
Author: Drew DeVault <sir@cmpwn.com>
Date:   Mon, 19 Apr 2021 18:08:45 -0400

haredoc: provide file path to lexer

Diffstat:
Mcmd/haredoc/main.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/haredoc/main.ha b/cmd/haredoc/main.ha @@ -117,7 +117,7 @@ fn scan(path: str) (ast::subunit | error) = { path, fs::strerror(err)), }; defer io::close(input); - const lexer = lex::init(input, "<stdin>", lex::flags::COMMENTS); + const lexer = lex::init(input, path, lex::flags::COMMENTS); return parse::subunit(&lexer)?; };