From 19f93cb859ff1f6ae63a6e09242ec97375487728 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Tue, 23 Feb 2010 14:45:23 +0100 Subject: [PATCH] [Yaml] fixed compact notation when there is an inlined hash (closes #8082) --- src/Symfony/Components/Yaml/Parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Components/Yaml/Parser.php b/src/Symfony/Components/Yaml/Parser.php index d6cbaf172d..3873c6b4d3 100644 --- a/src/Symfony/Components/Yaml/Parser.php +++ b/src/Symfony/Components/Yaml/Parser.php @@ -89,7 +89,7 @@ class Parser } elseif (isset($values['leadspaces']) && ' ' == $values['leadspaces'] - && preg_match('#^(?P'.Inline::REGEX_QUOTED_STRING.'|[^ \'"].*?) *\:(\s+(?P.+?))?\s*$#', $values['value'], $matches)) + && preg_match('#^(?P'.Inline::REGEX_QUOTED_STRING.'|[^ \'"\{].*?) *\:(\s+(?P.+?))?\s*$#', $values['value'], $matches)) { // this is a compact notation element, add to next block and parse $c = $this->getRealCurrentLineNb();