|
|
|
@ -11,6 +11,7 @@
|
|
|
|
|
|
|
|
|
|
namespace Mage\Yaml; |
|
|
|
|
|
|
|
|
|
use Mage\Yaml\Inline; |
|
|
|
|
use Mage\Yaml\Exception\ParseException; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -92,7 +93,7 @@ class Parser
|
|
|
|
|
// array |
|
|
|
|
if (!isset($values['value']) || '' == trim($values['value'], ' ') || 0 === strpos(ltrim($values['value'], ' '), '#')) { |
|
|
|
|
$c = $this->getRealCurrentLineNb() + 1; |
|
|
|
|
$parser = new Parser($c); |
|
|
|
|
$parser = new self($c); |
|
|
|
|
$parser->refs =& $this->refs; |
|
|
|
|
$data[] = $parser->parse($this->getNextEmbedBlock(), $exceptionOnInvalidType, $objectSupport, $objectForMap); |
|
|
|
|
} else { |
|
|
|
@ -102,7 +103,7 @@ class Parser
|
|
|
|
|
) { |
|
|
|
|
// this is a compact notation element, add to next block and parse |
|
|
|
|
$c = $this->getRealCurrentLineNb(); |
|
|
|
|
$parser = new Parser($c); |
|
|
|
|
$parser = new self($c); |
|
|
|
|
$parser->refs =& $this->refs; |
|
|
|
|
|
|
|
|
|
$block = $values['value']; |
|
|
|
@ -145,7 +146,7 @@ class Parser
|
|
|
|
|
$value = $this->getNextEmbedBlock(); |
|
|
|
|
} |
|
|
|
|
$c = $this->getRealCurrentLineNb() + 1; |
|
|
|
|
$parser = new Parser($c); |
|
|
|
|
$parser = new self($c); |
|
|
|
|
$parser->refs =& $this->refs; |
|
|
|
|
$parsed = $parser->parse($value, $exceptionOnInvalidType, $objectSupport, $objectForMap); |
|
|
|
|
|
|
|
|
@ -187,7 +188,7 @@ class Parser
|
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
$c = $this->getRealCurrentLineNb() + 1; |
|
|
|
|
$parser = new Parser($c); |
|
|
|
|
$parser = new self($c); |
|
|
|
|
$parser->refs =& $this->refs; |
|
|
|
|
$value = $parser->parse($this->getNextEmbedBlock(), $exceptionOnInvalidType, $objectSupport, $objectForMap); |
|
|
|
|
// Spec: Keys MUST be unique; first one wins. |
|
|
|
|