feat(util/name): accept more subscripts in identifiers
This commit is contained in:
parent
d7320f4938
commit
3e3ce6b8ca
1 changed files with 2 additions and 1 deletions
|
@ -35,7 +35,8 @@ bool is_letter_like_unicode(unsigned u) {
|
||||||
bool is_sub_script_alnum_unicode(unsigned u) {
|
bool is_sub_script_alnum_unicode(unsigned u) {
|
||||||
return
|
return
|
||||||
(0x207f <= u && u <= 0x2089) || // n superscript and numberic subscripts
|
(0x207f <= u && u <= 0x2089) || // n superscript and numberic subscripts
|
||||||
(0x2090 <= u && u <= 0x209c); // letter-like subscripts
|
(0x2090 <= u && u <= 0x209c) || // letter-like subscripts
|
||||||
|
(0x1d62 <= u && u <= 0x1d6a); // letter-like subscripts
|
||||||
}
|
}
|
||||||
|
|
||||||
bool is_id_first(char const * begin, char const * end) {
|
bool is_id_first(char const * begin, char const * end) {
|
||||||
|
|
Loading…
Reference in a new issue