Skip to content

Commit 7a06c91

Browse files
committed
Don't consume character after , without checking
Also remove fix for `consumeUntil` bug, which #1320 will address.
1 parent 0425f1e commit 7a06c91

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Parsing/ParserState.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -345,10 +345,6 @@ public function consumeUntil(
345345
$start = $this->currentPosition;
346346

347347
while (!$this->isEnd()) {
348-
$comment = $this->consumeComment();
349-
if ($comment instanceof Comment) {
350-
$comments[] = $comment;
351-
}
352348
$character = $this->consume(1);
353349
if (\in_array($character, $stopCharacters, true)) {
354350
if ($includeEnd) {

0 commit comments

Comments
 (0)