commit 01c9d4e72991bbd391a29a146fc30f469141deb3
parent 8fd2614695b0d216e0e773b9e6bbd61b3026c4d8
Author: Drew DeVault <sir@cmpwn.com>
Date: Sun, 18 Apr 2021 09:22:25 -0400
hare::lex: implement => (case)
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/hare/lex/lex.ha b/hare/lex/lex.ha
@@ -531,6 +531,7 @@ fn lex2(lexr: *lexer, loc: location, r: rune) (token | error) = {
'=' => match (n) {
r: rune => switch (r) {
'=' => return (ltok::LEQUAL, void, loc),
+ '>' => return (ltok::CASE, void, loc),
* => ltok::EQUAL,
},
io::EOF => ltok::EQUAL,