Skip to content

Commit

Permalink
Fix parse error in generated code when using CaptureNode
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed May 16, 2024
1 parent 7069d82 commit 5042528
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 5042528

Please sign in to comment.