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:
parent
4bbe5346f2
commit
053b780478
1 changed files with 1 additions and 1 deletions
|
|
@ -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,"");
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue