From 2e9e38ebafdb48f81ebf204fc8ed6d7dad3b94be Mon Sep 17 00:00:00 2001 From: Francisco Ryan Tolmasky I Date: Wed, 22 Oct 2008 18:13:44 -0700 Subject: [PATCH] Fix for multiline string literals not working in Objective-J. [#80 state:resolved] Reviewed by me. --- Objective-J/preprocess.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objective-J/preprocess.js b/Objective-J/preprocess.js index f5966cd7c..c02f6b8c7 100644 --- a/Objective-J/preprocess.js +++ b/Objective-J/preprocess.js @@ -62,7 +62,7 @@ var OBJJ_CURRENT_BUNDLE = NULL; var objj_lexer = function(aString, aSourceFile) { this._index = 0; - this._tokens = (aString + '\n').match(/\/\/.*(\r|\n)?|\/\*(?:.|\n|\r)*?\*\/|\w+\b|[+-]?\d+(([.]\d+)*([eE][+-]?\d+))?|"[^"\\]*(\\.[^"\\]*)*"|'[^'\\]*(\\.[^'\\]*)*'|\s+|./g); + this._tokens = (aString + '\n').match(/\/\/.*(\r|\n)?|\/\*(?:.|\n|\r)*?\*\/|\w+\b|[+-]?\d+(([.]\d+)*([eE][+-]?\d+))?|"([^"\\]|\\[\s\S])*"|'[^'\\]*(\\.[^'\\]*)*'|\s+|./g); this.file = aSourceFile;