Fix for multiline string literals not working in Objective-J.

[#80 state:resolved]

Reviewed by me.
This commit is contained in:
Francisco Ryan Tolmasky I committed 2008-10-22 18:13:44 -07:00
1 parent abebe2e081
commit 2e9e38ebaf
1 file changed
+1 -1
+1 -1
View File
@@ -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;