@@ 127-129 (lines=3) @@ | ||
124 | $appendContent = function(array $token) use(&$content) { $content .= $token[1]; }; |
|
125 | ||
126 | while($this->position < $this->tokensCount) { |
|
127 | while($this->position < $this->tokensCount && false === $this->lookahead(self::TOKEN_OPEN)) { |
|
128 | $this->match(null, $appendContent, true); |
|
129 | } |
|
130 | ||
131 | $this->beginBacktrack(); |
|
132 | $matchedShortcodes = $this->shortcode($names); |
|
@@ 206-208 (lines=3) @@ | ||
203 | $appendValue = function(array $token) use(&$value) { $value .= $token[1]; }; |
|
204 | ||
205 | if($this->match(self::TOKEN_DELIMITER)) { |
|
206 | while($this->position < $this->tokensCount && false === $this->lookahead(self::TOKEN_DELIMITER)) { |
|
207 | $this->match(null, $appendValue); |
|
208 | } |
|
209 | ||
210 | return $this->match(self::TOKEN_DELIMITER) ? $value : false; |
|
211 | } |