https://github.com/symfony/Yaml/blob/master/Inline.php#L140-141