GithubHelp home page GithubHelp logo

Comments (7)

dg avatar dg commented on May 20, 2024

After the colon must be a space but after the = may not be (compatiblity with INI). This behavior can be changed, but it is a big BC break.

from neon.

Majkl578 avatar Majkl578 commented on May 20, 2024

Neon is officially compatible with INI?

from neon.

dg avatar dg commented on May 20, 2024

No.

from neon.

hason avatar hason commented on May 20, 2024

In YAML it is possible to write

foo: foo: bar # same as foo: "foo: bar"

Why not in NEON?

I would like to write:

foo: foo=bar

without quotations.

from neon.

dg avatar dg commented on May 20, 2024

Why not in NEON?

So far no one needed it, probably it is not useful in practice.

I would like to write without quotations

It is currently little bit problematic, because = is the same as :. So it is possible to support foo: foo: bar xor foo: foo=bar.

from neon.

Majkl578 avatar Majkl578 commented on May 20, 2024

In YAML it is possible to write

foo: foo: bar

No, it is not, it is illegal syntax. I.e. Symfony Yaml component fails with this error: Uncaught Symfony\Component\Yaml\Exception\ParseException: A colon cannot be used in an unquoted mapping value at line 1 (near "foo: foo: bar").
Forbidden by YAML 1.2 specification: http://yaml.org/spec/1.2/spec.html#id2788859

from neon.

hason avatar hason commented on May 20, 2024

It was possible in Symfony 2. And yes, it is illegal. So I have solved a problem with =: https://github.com/symfonette/neon-integration#expression

from neon.

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.