Permalink
Browse files

escape characters are no longer allowed inside triple-quote strings -…

…- this makes it easier to include entire programs in this kind of string
  • Loading branch information...
1 parent 453430a commit cc6f7a0dd1d8b777350dc8136f42da1f2628462f @alexwarth alexwarth committed Jul 22, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 bs-js-compiler.js
  2. +1 −1 bs-js-compiler.txt
View
Oops, something went wrong.
View
@@ -14,7 +14,7 @@ ometa BSJSParser {
escapeChar = <'\\' ( 'u' hexDigit hexDigit hexDigit hexDigit
| 'x' hexDigit hexDigit
| char )>:s -> unescape(s),
- str = seq('"""') (escapeChar | ~seq('"""') char)*:cs seq('"""') -> [#string, cs.join('')]
+ str = seq('"""') (~seq('"""') char)*:cs seq('"""') -> [#string, cs.join('')]
| '\'' (escapeChar | ~'\'' char)*:cs '\'' -> [#string, cs.join('')]
| '"' (escapeChar | ~'"' char)*:cs '"' -> [#string, cs.join('')]
| ('#' | '`') iName:n -> [#string, n],

0 comments on commit cc6f7a0

Please sign in to comment.