|
@@ 1558-1561 (lines=4) @@
|
| 1555 |
|
} elseif ($substr !== '' && (is_array($parsingParams) || $curBlock === 'namedparam' || $curBlock === 'condition' || $curBlock === 'expression')) { |
| 1556 |
|
// unquoted string, bool or number |
| 1557 |
|
$out = $this->parseOthers($in, $from, $to, $parsingParams, $curBlock, $pointer); |
| 1558 |
|
} else { |
| 1559 |
|
// parse error |
| 1560 |
|
throw new CompilationException($this, 'Parse error in "' . substr($in, $from, $to - $from) . '"'); |
| 1561 |
|
} |
| 1562 |
|
|
| 1563 |
|
if (empty($out)) { |
| 1564 |
|
return ''; |
|
@@ 2191-2193 (lines=3) @@
|
| 2188 |
|
$o = $from + 1; |
| 2189 |
|
while ($strend === false) { |
| 2190 |
|
$strend = strpos($in, $first, $o); |
| 2191 |
|
if ($strend === false) { |
| 2192 |
|
throw new CompilationException($this, 'Unfinished string, started with ' . substr($in, $from, $to - $from)); |
| 2193 |
|
} |
| 2194 |
|
if (substr($in, $strend - 1, 1) === '\\') { |
| 2195 |
|
$o = $strend + 1; |
| 2196 |
|
$strend = false; |