multiline strings throw out error line numbers

e.g:

```
<?php
$foo = "test
multiline

string"
a
?>
```
shows  error on line 3 instead of 6.
This commit is contained in:
Adam Jimenez 2013-10-22 18:51:48 +01:00
commit 053b780478

View file

@ -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,"");
}
/*