| @@ 1046-1056 (lines=11) @@ | ||
| 1043 | ||
| 1044 | // consume a list of tags |
|
| 1045 | // this accepts a hanging delimiter |
|
| 1046 | protected function tags(&$tags, $simple = false, $delim = ',') |
|
| 1047 | { |
|
| 1048 | $tags = []; |
|
| 1049 | while ($this->tag($tt, $simple)) { |
|
| 1050 | $tags[] = $tt; |
|
| 1051 | if (!$this->literal($delim)) { |
|
| 1052 | break; |
|
| 1053 | } |
|
| 1054 | } |
|
| 1055 | ||
| 1056 | return count($tags) !== 0; |
|
| 1057 | } |
|
| 1058 | ||
| 1059 | // list of tags of specifying mixin path |
|
| @@ 1061-1070 (lines=10) @@ | ||
| 1058 | ||
| 1059 | // list of tags of specifying mixin path |
|
| 1060 | // optionally separated by > (lazy, accepts extra >) |
|
| 1061 | protected function mixinTags(&$tags) |
|
| 1062 | { |
|
| 1063 | $tags = []; |
|
| 1064 | while ($this->tag($tt, true)) { |
|
| 1065 | $tags[] = $tt; |
|
| 1066 | $this->literal(">"); |
|
| 1067 | } |
|
| 1068 | ||
| 1069 | return count($tags) !== 0; |
|
| 1070 | } |
|
| 1071 | ||
| 1072 | // a bracketed value (contained within in a tag definition) |
|
| 1073 | protected function tagBracket(&$parts, &$hasExpression) |
|