Skip to content

Commit

Permalink
bug #4093 Fix parse error in generated code when using CaptureNode (n…
Browse files Browse the repository at this point in the history
…icolas-grekas)

This PR was merged into the 3.x branch.

Discussion
----------

Fix parse error in generated code when using CaptureNode

Fix #4092

Introduced in 799355d

Commits
-------

5042528 Fix parse error in generated code when using CaptureNode
  • Loading branch information
fabpot committed May 16, 2024
2 parents 7069d82 + 5042528 commit 75fc9b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Node/CaptureNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ public function compile(Compiler $compiler): void
}
if (!$this->getAttribute('raw')) {
$compiler->raw(") ? '' : new Markup(\$tmp, \$this->env->getCharset());");
} else {
$compiler->raw(';');
}
}
}

0 comments on commit 75fc9b9

Please sign in to comment.