[Yaml] fixed compact notation when there is an inlined hash (closes #8082)

This commit is contained in:
Fabien Potencier 2010-02-23 14:45:23 +01:00
parent 18abbb81ee
commit 19f93cb859
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ class Parser
}
elseif (isset($values['leadspaces'])
&& ' ' == $values['leadspaces']
&& preg_match('#^(?P<key>'.Inline::REGEX_QUOTED_STRING.'|[^ \'"].*?) *\:(\s+(?P<value>.+?))?\s*$#', $values['value'], $matches))
&& preg_match('#^(?P<key>'.Inline::REGEX_QUOTED_STRING.'|[^ \'"\{].*?) *\:(\s+(?P<value>.+?))?\s*$#', $values['value'], $matches))
{
// this is a compact notation element, add to next block and parse
$c = $this->getRealCurrentLineNb();