ympbyc / LittleSmallscript

JavaScript with Smalltalk's syntax

Home Page:http://ympbyc.github.io/LittleSmallscript/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow apostrophe inside strings

ympbyc opened this issue · comments

In JavScript and most other languages, 'foo'bar'' is identical to "foo'bar'". Meanwhile LSs throws an error because it thinks the apostrophe before bar is the string terminator.
Since we can not use double quotation for strings, there currently is no way to include an apostrophe in a string.

v1.0.3 supports backslash escaping. You can include an apostrophe in a string by appending a backslash in front of it.

'That\'s great!'