mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-19 03:44:23 -05:00
removing dollar-prefixed local vars (let's keep 'em for globals only)
This commit is contained in:
@@ -569,8 +569,8 @@
|
||||
return str.replace(MULTILINER, heredoc ? '\\n' : '');
|
||||
};
|
||||
Lexer.prototype.makeString = function(body, quote, heredoc) {
|
||||
body = body.replace(/\\([\s\S])/g, function($amp, $1) {
|
||||
return ('\n' === $1 || quote === $1) ? $1 : $amp;
|
||||
body = body.replace(/\\([\s\S])/g, function(match, contents) {
|
||||
return ('\n' === contents || quote === contents) ? contents : match;
|
||||
});
|
||||
body = body.replace(RegExp("" + quote, "g"), '\\$&');
|
||||
return quote + this.escapeLines(body, heredoc) + quote;
|
||||
|
||||
Reference in New Issue
Block a user