IsUnicodeIdentifierStart reports whether ch may begin an ECMAScript identifier, i.e. whether it has the Unicode ID_Start (or Other_ID_Start) property. The range table is generated; see generate-unicode-data.mts.
(ch rune)
| 6 | // identifier, i.e. whether it has the Unicode ID_Start (or Other_ID_Start) |
| 7 | // property. The range table is generated; see generate-unicode-data.mts. |
| 8 | func IsUnicodeIdentifierStart(ch rune) bool { |
| 9 | return unicode.Is(unicodeESNextIdentifierStart, ch) |
| 10 | } |
| 11 | |
| 12 | // IsUnicodeIdentifierPart reports whether ch may appear after the first |
| 13 | // character of an ECMAScript identifier, i.e. whether it has the Unicode |