|
@@ 1572-1575 (lines=4) @@
|
| 1569 |
|
} elseif ($substr !== '' && (is_array($parsingParams) || $curBlock === 'namedparam' || $curBlock === 'condition' || $curBlock === 'expression')) { |
| 1570 |
|
// unquoted string, bool or number |
| 1571 |
|
$out = $this->parseOthers($in, $from, $to, $parsingParams, $curBlock, $pointer); |
| 1572 |
|
} else { |
| 1573 |
|
// parse error |
| 1574 |
|
throw new CompilationException($this, 'Parse error in "' . substr($in, $from, $to - $from) . '"'); |
| 1575 |
|
} |
| 1576 |
|
|
| 1577 |
|
if (empty($out)) { |
| 1578 |
|
return ''; |
|
@@ 2228-2230 (lines=3) @@
|
| 2225 |
|
$o = $from + 1; |
| 2226 |
|
while ($strend === false) { |
| 2227 |
|
$strend = strpos($in, $first, $o); |
| 2228 |
|
if ($strend === false) { |
| 2229 |
|
throw new CompilationException($this, 'Unfinished string, started with ' . substr($in, $from, $to - $from)); |
| 2230 |
|
} |
| 2231 |
|
if (substr($in, $strend - 1, 1) === '\\') { |
| 2232 |
|
$o = $strend + 1; |
| 2233 |
|
$strend = false; |