@@ 1566-1569 (lines=4) @@ | ||
1563 | } elseif ($substr !== '' && (is_array($parsingParams) || $curBlock === 'namedparam' || $curBlock === 'condition' || $curBlock === 'expression')) { |
|
1564 | // unquoted string, bool or number |
|
1565 | $out = $this->parseOthers($in, $from, $to, $parsingParams, $curBlock, $pointer); |
|
1566 | } else { |
|
1567 | // parse error |
|
1568 | throw new CompilationException($this, 'Parse error in "' . substr($in, $from, $to - $from) . '"'); |
|
1569 | } |
|
1570 | ||
1571 | if (empty($out)) { |
|
1572 | return ''; |
|
@@ 2222-2224 (lines=3) @@ | ||
2219 | $o = $from + 1; |
|
2220 | while ($strend === false) { |
|
2221 | $strend = strpos($in, $first, $o); |
|
2222 | if ($strend === false) { |
|
2223 | throw new CompilationException($this, 'Unfinished string, started with ' . substr($in, $from, $to - $from)); |
|
2224 | } |
|
2225 | if (substr($in, $strend - 1, 1) === '\\') { |
|
2226 | $o = $strend + 1; |
|
2227 | $strend = false; |