rokucommunity / brighterscript-formatter

A code formatter for BrighterScript (and BrightScript)
MIT License
14 stars 6 forks source link

Handle unicode escape sequence in template strings #86

Closed iBicha closed 4 months ago

iBicha commented 4 months ago

In js, you can do

console.log(`\u001b[31mHello`)

and it would print a red hello.

Brighterscript can parse \u escape sequence and replace it with the right Chr calls. E.g. \u001b[31mHello can be transpilied to Chr(27) + "[31mHello"

iBicha commented 4 months ago

Oops, wrong repo