protected function handleArgumentValue($arg)
{
if (preg_match('/^"(?:\\\\.|[^"\\\\])*"|\'(?:\\\\.|[^\'\\\\])*\'/', $arg)) {
return $this->handleString(trim($arg));
}
try {
return $this->handleCode($arg);
} catch (\Exception $e) {
// if a bug occur, try to remove comments
try {
return $this->handleCode(preg_replace('#/\\*(.*)\\*/#', '', $arg));
} catch (\Exception $e) {
throw new ParserException('Pug.php did not understand ' . $arg, 10, $e);
}
}
}