vendor tsgo

This commit is contained in:
2026-07-09 16:50:43 -04:00
parent c06ea2e5a4
commit 98978e4930
5804 changed files with 1556156 additions and 101 deletions

View File

@@ -0,0 +1,17 @@
package stringutil
import "unicode"
// 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.
func IsUnicodeIdentifierStart(ch rune) bool {
return unicode.Is(unicodeESNextIdentifierStart, ch)
}
// IsUnicodeIdentifierPart reports whether ch may appear after the first
// character of an ECMAScript identifier, i.e. whether it has the Unicode
// ID_Continue (or Other_ID_Continue) property, which also includes ID_Start.
func IsUnicodeIdentifierPart(ch rune) bool {
return unicode.Is(unicodeESNextIdentifierPart, ch)
}