commit 737394608abf8c0a418b1c3725f9b05da8bef0f3
parent 7174b76ad5b7213341bb561020f250b4cf6eb517
Author: Sebastian <sebastian@sebsite.pw>
Date: Thu, 21 Apr 2022 15:51:12 -0400
haredoc: test parseident with keyword
Signed-off-by: Sebastian <sebastian@sebsite.pw>
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/cmd/haredoc/main.ha b/cmd/haredoc/main.ha
@@ -344,4 +344,5 @@ fn emit(ctx: *context) (void | error) = {
assert(parseident("hare::lex") is ast::ident);
assert(parseident("strings::dup*{}&@") is parse::error);
assert(parseident("foo::bar::") is parse::error);
+ assert(parseident("rt::abort") is ast::ident);
};