Skip to content

Commit 79ea337

Browse files
ajozefiakJeffBezanson
authored andcommitted
๐ŸŽ-๐Ÿ— and ๐Ÿ˜-๐Ÿก Identifiers (#32838)
1 parent a18ab97 commit 79ea337

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

โ€ŽNEWS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ New language features
66

77
* Support for Unicode 12.1.0 ([#32002]).
88
* Methods can now be added to an abstract type ([#31916]).
9+
* Support for unicode bold-digits and double-struck digits 0 through 9 as valid identifiers ([#32838]).
910

1011
Language changes
1112
----------------

โ€Žsrc/flisp/julia_extensions.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,10 @@ static int is_wc_cat_id_start(uint32_t wc, utf8proc_category_t cat)
106106

107107
// Other_ID_Start
108108
wc == 0x2118 || wc == 0x212E || // โ„˜, โ„ฎ
109-
(wc >= 0x309B && wc <= 0x309C)); // katakana-hiragana sound marks
109+
(wc >= 0x309B && wc <= 0x309C) || // katakana-hiragana sound marks
110+
111+
// bold-digits and double-struck digits
112+
(wc >= 0x1D7CE && wc <= 0x1D7E1)); // ๐ŸŽ through ๐Ÿ— (inclusive), ๐Ÿ˜ through ๐Ÿก (inclusive)
110113
}
111114

112115
JL_DLLEXPORT int jl_id_start_char(uint32_t wc)

0 commit comments

Comments
ย (0)