aboutsummaryrefslogtreecommitdiff
path: root/src/formatter/formatter.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-09-09 19:58:07 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-09-09 19:58:07 -0400
commitd64dcab138a34d5f5105e08f0a840f7cb5a1d159 (patch)
treefcf98fa006be9fd8894f534cc37926d25dc5520f /src/formatter/formatter.c
parent6cf3b1c7f3052d8167096c12f201624dcb12559e (diff)
Overhaul to the unicode encoding/decoding methods for text
Diffstat (limited to 'src/formatter/formatter.c')
-rw-r--r--src/formatter/formatter.c2
1 files changed, 1 insertions, 1 deletions
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);
}