From d64dcab138a34d5f5105e08f0a840f7cb5a1d159 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 9 Sep 2025 19:58:07 -0400 Subject: Overhaul to the unicode encoding/decoding methods for text --- src/formatter/formatter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/formatter') diff --git a/src/formatter/formatter.c b/src/formatter/formatter.c index b68b3874..2c52aa63 100644 --- a/src/formatter/formatter.c +++ b/src/formatter/formatter.c @@ -54,7 +54,7 @@ PUREFUNC text_opts_t choose_text_options(ast_list_t *chunks) { } static bool starts_with_id(Text_t text) { - List_t codepoints = Text$utf32_codepoints(Text$slice(text, I_small(1), I_small(1))); + List_t codepoints = Text$utf32(Text$slice(text, I_small(1), I_small(1))); return uc_is_property_xid_continue(*(ucs4_t *)codepoints.data); } -- cgit v1.2.3