Skip to content

Commit c5d240c

Browse files
committed
Fixed a bug which caused the parser to set wrong starting position after a
DELIMITER statement.
1 parent aef354a commit c5d240c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,7 @@ public function parse()
375375
) {
376376
// Skipping to the end of this statement.
377377
$list->getNextOfType(Token::TYPE_DELIMITER);
378+
$prevLastIdx = $list->idx;
378379
continue;
379380
}
380381

@@ -412,7 +413,6 @@ public function parse()
412413
}
413414
// Skipping to the end of this statement.
414415
$list->getNextOfType(Token::TYPE_DELIMITER);
415-
//
416416
$prevLastIdx = $list->idx;
417417
continue;
418418
}

0 commit comments

Comments
 (0)