Coder Social home page Coder Social logo

Comments (3)

perlpunk avatar perlpunk commented on July 3, 2024

That is invalid YAML, but I'm aware that several parsers accept it.
Even the closing } is below the Item entry, and per definition any content below a certain key must be indented with at least one space.

See also https://www.yaml.info/learn/flowstyle.html

from yaml-pp-p5.

pplu avatar pplu commented on July 3, 2024

That is invalid YAML. but I'm aware that several parsers accept it.

Wow! One space fixed it all :)

It's kind of difficult to distinguish between invalid-but-accepted YAML and not-supported-yet-in-yaml-pp YAML. Sorry for overreporting.

Is there any way of getting YAML::PP to parse it via something in: https://metacpan.org/source/JLMARTIN/Cfn-0.13/lib/Cfn/YAML/Schema.pm

Would you accept a patch that enables the activation of such a "feature"?

from yaml-pp-p5.

perlpunk avatar perlpunk commented on July 3, 2024

That has nothing to do with the Schema.
This would have to be implemented in the Lexer, and you can have a look at it if you want.

from yaml-pp-p5.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.