Skip to content

Commit

Permalink
Allow four more characters to start identifiers.
Browse files Browse the repository at this point in the history
- Mathematical bold 0, 1 (U+1D7CE, U+1D7CF)
- Mathematical double-struck 0, 1 (U+1D7D8, U+1D7D9)

which are sometimes used to represent certain representations of additive
and multiplicative identities.

Closes #10762
  • Loading branch information
jiahao committed May 14, 2015
1 parent 9a47c3b commit da26e3c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/flisp/julia_extensions.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ static int is_wc_cat_id_start(uint32_t wc, utf8proc_propval_t cat)
(wc >= 0x2a09 && wc <= 0x2a16) || // ⨉, ⨊, ⨋, ⨌, ⨍, ⨎, ⨏, ⨐, ⨑, ⨒, ⨓, ⨔, ⨕, ⨖
wc == 0x2a1b || wc == 0x2a1c)))) || // ⨛, ⨜

(wc == 0x1d7ce || wc <= 0x1d7cf ) || // Mathematical bold 0, 1
(wc == 0x1d7d8 || wc <= 0x1d7d9 ) || // Mathematical double-struck 0, 1

(wc >= 0x1d6c1 && // variants of \nabla and \partial
(wc == 0x1d6c1 || wc == 0x1d6db ||
wc == 0x1d6fb || wc == 0x1d715 ||
Expand Down

0 comments on commit da26e3c

Please sign in to comment.