From 053b780478d6ffcbeddd72a36497e094cbc03ab2 Mon Sep 17 00:00:00 2001 From: Adam Jimenez Date: Tue, 22 Oct 2013 18:51:48 +0100 Subject: [PATCH] multiline strings throw out error line numbers e.g: ``` ``` shows error on line 3 instead of 6. --- lib/ace/mode/php/php.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ace/mode/php/php.js b/lib/ace/mode/php/php.js index 67346058..3c6c883e 100644 --- a/lib/ace/mode/php/php.js +++ b/lib/ace/mode/php/php.js @@ -766,7 +766,7 @@ PHP.Lexer = function( src, ini ) { return undefined; } else { - result = result.replace(/\n/g,"\\n").replace(/\r/g,""); + result = result.replace(/\n/g,"\n").replace(/\r/g,""); } /*