Skip to content

Commit

Permalink
๐ŸŽ-๐Ÿ— and ๐Ÿ˜-๐Ÿก Identifiers (#32838)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajozefiak authored and JeffBezanson committed Aug 12, 2019
1 parent a18ab97 commit 79ea337
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ New language features

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

Language changes
----------------
Expand Down
5 changes: 4 additions & 1 deletion src/flisp/julia_extensions.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,10 @@ static int is_wc_cat_id_start(uint32_t wc, utf8proc_category_t cat)

// Other_ID_Start
wc == 0x2118 || wc == 0x212E || // โ„˜, โ„ฎ
(wc >= 0x309B && wc <= 0x309C)); // katakana-hiragana sound marks
(wc >= 0x309B && wc <= 0x309C) || // katakana-hiragana sound marks

// bold-digits and double-struck digits
(wc >= 0x1D7CE && wc <= 0x1D7E1)); // ๐ŸŽ through ๐Ÿ— (inclusive), ๐Ÿ˜ through ๐Ÿก (inclusive)
}

JL_DLLEXPORT int jl_id_start_char(uint32_t wc)
Expand Down

0 comments on commit 79ea337

Please sign in to comment.