| @@ 3250-3264 (lines=15) @@ | ||
| 3247 | ||
| 3248 | // consume a list of tags |
|
| 3249 | // this accepts a hanging delimiter |
|
| 3250 | protected function tags(&$tags, $simple = false, $delim = ',') |
|
| 3251 | { |
|
| 3252 | $tags = []; |
|
| 3253 | while ($this->tag($tt, $simple)) { |
|
| 3254 | $tags[] = $tt; |
|
| 3255 | if (!$this->literal($delim)) { |
|
| 3256 | break; |
|
| 3257 | } |
|
| 3258 | } |
|
| 3259 | if (count($tags) == 0) { |
|
| 3260 | return false; |
|
| 3261 | } |
|
| 3262 | ||
| 3263 | return true; |
|
| 3264 | } |
|
| 3265 | ||
| 3266 | // list of tags of specifying mixin path |
|
| 3267 | // optionally separated by > (lazy, accepts extra >) |
|
| @@ 3268-3282 (lines=15) @@ | ||
| 3265 | ||
| 3266 | // list of tags of specifying mixin path |
|
| 3267 | // optionally separated by > (lazy, accepts extra >) |
|
| 3268 | protected function mixinTags(&$tags) |
|
| 3269 | { |
|
| 3270 | $s = $this->seek(); |
|
| 3271 | $tags = []; |
|
| 3272 | while ($this->tag($tt, true)) { |
|
| 3273 | $tags[] = $tt; |
|
| 3274 | $this->literal('>'); |
|
| 3275 | } |
|
| 3276 | ||
| 3277 | if (count($tags) == 0) { |
|
| 3278 | return false; |
|
| 3279 | } |
|
| 3280 | ||
| 3281 | return true; |
|
| 3282 | } |
|
| 3283 | ||
| 3284 | // a bracketed value (contained within in a tag definition) |
|
| 3285 | protected function tagBracket(&$value) |
|