aboutsummaryrefslogtreecommitdiff
path: root/src/unicode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/unicode.cpp')
-rw-r--r--src/unicode.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/unicode.cpp b/src/unicode.cpp
index a9781d8f7..872881414 100644
--- a/src/unicode.cpp
+++ b/src/unicode.cpp
@@ -6,7 +6,6 @@
#pragma warning(pop)
-// TODO(bill): Unicode support
b32 rune_is_letter(Rune r) {
if ((r < 0x80 && gb_char_is_alpha(cast(char)r)) ||
r == '_') {
@@ -24,8 +23,9 @@ b32 rune_is_letter(Rune r) {
}
b32 rune_is_digit(Rune r) {
- if (r < 0x80 && gb_is_between(r, '0', '9'))
+ if (r < 0x80 && gb_is_between(r, '0', '9')) {
return true;
+ }
return utf8proc_category(r) == UTF8PROC_CATEGORY_ND;
}