public function leaveTopBlock(Run $node) { if ($node->isBlock()) { if (preg_match('~^(?:-\\s*)?(\\w+)~', $node->getContent(), $match)) { $this->write($this->renderTag('end' . $match[1])); } } }
public function leaveTopBlock(Run $node) { if ($node->isBlock()) { $this->write('<?php } ?>'); } }