symfony/symfony — pull request #5146 by ezzatron (2012-08-01 14:52:26+00:00)
Title: [Yaml] added a means to determine the last index parsed by the inline YAML parser

Bug fix: no
Feature addition: yes
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: -
Todo: -
License of the code: MIT
Documentation PR: -

I have a use-case where inline YAML is embedded in another syntax. this allows me to consume valid YAML input while possible, and then resume parsing the other syntax.

Most of the class already supports passing an index argument by reference to track the current parser position (but all methods are private and it's not currently used internally?), so all this change entails is to pass on the by-reference parameter from the main parse() method to the other methods that already support it.