namespace pxt . py . rx { const nonASCIIwhitespace = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/ ; export function isIdentifierStart ( code ) { return ts . pxtc . isIdentifierStart ( code , ts . pxtc . ScriptTarget . ES5 ) ; } export function isIdentifierChar ( code ) { return ts . pxtc . isIdentifierPart ( code , ts . pxtc . ScriptTarget . ES5 ) ; } export function isSpace ( ch ) { if ( ch === 32 || ch === 9 || ch === 11 || ch === 12 || ch === 160 || ch >= 0x1680 && nonASCIIwhitespace . test ( String . fromCharCode ( ch ) ) ) { return true ; } return false ; } export function isNewline ( ch ) { if ( ch === 10 || ch === 13 ) return true ; if ( ch === 0x2028 || ch === 0x2029 ) return true ; return false ; } }