commit 7a9866a08b1b3a8fc8b37bc76f3ad93e032122f8
parent 4f93fac296f461eab3a02a545d1f2dc958a75191
Author: Sebastian <sebastian@sebsite.pw>
Date: Sat, 14 May 2022 22:46:13 -0400
encoding::json: export unlex
Signed-off-by: Sebastian <sebastian@sebsite.pw>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/encoding/json/lex.ha b/encoding/json/lex.ha
@@ -95,7 +95,7 @@ export fn lex(lex: *lexer) (token | io::EOF | error) = {
// "Unlexes" a token from the lexer, such that the next call to [[lex]] will
// return that token again. Only one token can be unlexed at a time, otherwise
// the program will abort.
-fn unlex(lex: *lexer, tok: token) void = {
+export fn unlex(lex: *lexer, tok: token) void = {
assert(lex.un is void, "encoding::json::unlex called twice in a row");
lex.un = tok;
};