Rewriting string tokenizer; allowing nested double-quoted strings inside expression interpolations.

This commit is contained in:
Stan Angeloff
2010-03-06 22:16:37 +02:00
committed by Jeremy Ashkenas
parent e977967eb5
commit 83fd84745d
3 changed files with 95 additions and 5 deletions

View File

@@ -48,3 +48,8 @@ obj: {
hi: -> "Hello $@name."
}
ok obj.hi() is "Hello Joe."
ok "I can has ${"cheeze"}" is 'I can has cheeze'
ok 'I can has ${"cheeze"}' is 'I can has ${"cheeze"}'
ok "Where is ${obj["name"] + '?'}" is 'Where is Joe?'