Lines Matching refs:tag
26 public const TAG_PATTERN = '(?P<tag>![\w!.\/:-]+)';
143 // Resolves the tag and returns if end of the document
144 if (null !== ($tag = $this->getLineTag($this->currentLine, $flags, false)) && !$this->moveToNextLine()) {
145 return new TaggedValue($tag, '');
501 if (null !== $tag) {
502 $data = new TaggedValue($tag, $data);
746 if ('' !== $matches['tag'] && '!' !== $matches['tag']) {
747 if ('!!binary' === $matches['tag']) {
751 return new TaggedValue(substr($matches['tag'], 1), $data);
1112 * Trim the tag on top of the value.
1136 $tag = substr($matches['tag'], 1);
1139 if ($tag && '!' === $tag[0]) {
1140 throw new ParseException(sprintf('The built-in tag "!%s" is not implemented.', $tag), $this->getRealCurrentLineNb() + 1, $value, $this->filename);
1144 return $tag;
1147 throw new ParseException(sprintf('Tags support is not enabled. You must use the flag "Yaml::PARSE_CUSTOM_TAGS" to use "%s".', $matches['tag']), $this->getRealCurrentLineNb() + 1, $value, $this->filename);