Skip to content

Commit bbb5cf1

Browse files
author
jane-olszewska
committed
Fixed comment token extraction: will no longer read one character from the next line
1 parent c18cd16 commit bbb5cf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Language/Lexer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ private function readComment($start, $line, $col, Token $prev)
492492
$line,
493493
$col,
494494
$prev,
495-
mb_substr($body, $start + 1, $position - $start + 1, 'UTF-8')
495+
mb_substr($body, $start + 1, $position - $start, 'UTF-8')
496496
);
497497
}
498498
}

0 commit comments

Comments
 (0)