|
@@ 126-128 (lines=3) @@
|
| 123 |
|
$appendContent = function(array $token) use(&$content) { $content .= $token[1]; }; |
| 124 |
|
|
| 125 |
|
while($this->position < $this->tokensCount) { |
| 126 |
|
while($this->position < $this->tokensCount && false === $this->lookahead(self::TOKEN_OPEN)) { |
| 127 |
|
$this->match(null, $appendContent, true); |
| 128 |
|
} |
| 129 |
|
$isShortcode = $this->lookaheadN(array(self::TOKEN_OPEN, self::TOKEN_STRING)); |
| 130 |
|
$isMarker = $this->lookaheadN(array(self::TOKEN_OPEN, self::TOKEN_MARKER)); |
| 131 |
|
if(false === ($isShortcode || $isMarker)) { |
|
@@ 213-215 (lines=3) @@
|
| 210 |
|
$appendValue = function(array $token) use(&$value) { $value .= $token[1]; }; |
| 211 |
|
|
| 212 |
|
if($this->match(self::TOKEN_DELIMITER)) { |
| 213 |
|
while($this->position < $this->tokensCount && false === $this->lookahead(self::TOKEN_DELIMITER)) { |
| 214 |
|
$this->match(null, $appendValue); |
| 215 |
|
} |
| 216 |
|
|
| 217 |
|
return $this->match(self::TOKEN_DELIMITER) ? $value : false; |
| 218 |
|
} |