We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15c1c3c commit 43adc22Copy full SHA for 43adc22
TwigCS/Token/Tokenizer.php
@@ -370,7 +370,8 @@ protected function lexComment()
370
371
if (!isset($match[0])) {
372
throw new Exception('Unclosed comment');
373
- } elseif ($match[0][1] === $this->cursor) {
+ }
374
+ if ($match[0][1] === $this->cursor) {
375
$this->pushToken(Token::COMMENT_END_TYPE, $match[0][0]);
376
$this->moveCursor($match[0][0]);
377
$this->moveCurrentPosition();
0 commit comments