From b76792813048519e35d78d014a6d597b821ad08d Mon Sep 17 00:00:00 2001 From: Lobo Torres Date: Thu, 5 Dec 2024 12:52:02 -0300 Subject: [PATCH] rename hash literals to pound literals in code --- parse/lex.ha | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/parse/lex.ha b/parse/lex.ha index fe989ab..ce8e808 100644 --- a/parse/lex.ha +++ b/parse/lex.ha @@ -84,7 +84,7 @@ export fn lex(lex: *lexer) (token | io::EOF | error) = { return symbol{ v = v, kw = true }; }; case '#' => - return scanhash(lex)?; + return scanpound(lex)?; case '"' => return scanstr(lex)?; case => @@ -210,12 +210,12 @@ fn scanstr(lex: *lexer) (str | error) = { return memio::string(&lex.strbuf)!; }; -fn scanhash(lex: *lexer) (token | error) = { +fn scanpound(lex: *lexer) (token | error) = { const rn = match (nextrune(lex)?) { case let rn: rune => yield rn; case io::EOF => - return ("hash literal", lex.loc.0, lex.loc.1): unterminated; + return ("pound literal", lex.loc.0, lex.loc.1): unterminated; }; switch (rn) {