@@ 126-129 (lines=4) @@ | ||
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); |
|
128 | continue; |
|
129 | } |
|
130 | ||
131 | $this->beginBacktrack(); |
|
132 | $matchedShortcodes = $this->shortcode($names); |
|
@@ 208-210 (lines=3) @@ | ||
205 | $appendValue = function(array $token) use(&$value) { $value .= $token[1]; }; |
|
206 | ||
207 | if($this->match(self::TOKEN_DELIMITER)) { |
|
208 | while($this->position < $this->tokensCount && !$this->lookahead(self::TOKEN_DELIMITER)) { |
|
209 | $this->match(null, $appendValue); |
|
210 | } |
|
211 | ||
212 | return $this->match(self::TOKEN_DELIMITER) ? $value : false; |
|
213 | } |