@@ 821-823 (lines=3) @@ | ||
818 | } |
|
819 | ||
820 | // check that there is an end tag present |
|
821 | if (strpos($tpl, $this->rd, $pos) === false) { |
|
822 | throw new CompilationException($this, 'A template tag was not closed, started with "' . substr($tpl, $ptr, 30) . '"'); |
|
823 | } |
|
824 | ||
825 | $ptr += strlen($this->ld); |
|
826 | $subptr = $ptr; |
|
@@ 1463-1468 (lines=6) @@ | ||
1460 | } |
|
1461 | } |
|
1462 | $endpos = $ptr - strlen('*' . $this->rd); |
|
1463 | } else { |
|
1464 | $endpos = strpos($src, '*' . $this->rd, $startpos); |
|
1465 | if ($endpos == false) { |
|
1466 | throw new CompilationException($this, 'Un-ended comment'); |
|
1467 | } |
|
1468 | } |
|
1469 | $pointer += $endpos - $startpos + strlen('*' . $this->rd); |
|
1470 | if (isset($whitespaceStart) && preg_match('#^[\t ]*\r?\n#', substr($src, $endpos + strlen('*' . $this->rd)), $m)) { |
|
1471 | $pointer += strlen($m[0]); |