Skip to content

Commit 56bbb8d

Browse files
committed
Fixed line start finding in Conveyor::makeException
1 parent 2a6a7a8 commit 56bbb8d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/Parsing/Conveyor.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ public function makeException(string $description, int $code = 0, \Throwable $pr
8080

8181
for (; $offset > 0; --$offset) {
8282
// TODO Configurable newline symbol
83-
if ($this->source[$offset] === '\n') {
83+
if ($this->source[$offset] === "\n") {
84+
++$offset;
8485
break;
8586
}
8687
}

0 commit comments

Comments
 (0)