Author: fabien
Date: 2010-02-23 14:49:17 +0100 (Tue, 23 Feb 2010)
New Revision: 28213

Modified:
   components/yaml/trunk/lib/sfYamlParser.php
Log:
[YAML] fixed compact notation when there is an inlined hash (closes #8082)

Modified: components/yaml/trunk/lib/sfYamlParser.php
===================================================================
--- components/yaml/trunk/lib/sfYamlParser.php  2010-02-23 13:38:45 UTC (rev 
28212)
+++ components/yaml/trunk/lib/sfYamlParser.php  2010-02-23 13:49:17 UTC (rev 
28213)
@@ -96,7 +96,7 @@
           }
           elseif (isset($values['leadspaces'])
             && ' ' == $values['leadspaces']
-            && preg_match('#^(?P<key>'.sfYamlInline::REGEX_QUOTED_STRING.'|[^ 
\'"].*?) *\:(\s+(?P<value>.+?))?\s*$#', $values['value'], $matches))
+            && preg_match('#^(?P<key>'.sfYamlInline::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();

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.

Reply via email to