Comments (7)
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.
Neon is officially compatible with INI?
from neon.
No.
from neon.
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.
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.
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.
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)
- Encoded DateTime incompatible with Decoder
- Octal values is malformed HOT 9
- Will there be support for HHVM? HOT 2
- Results of „Parsing JSON is a Minefield“ test
- Support decoding to stdClass instead of array
- RFC: Group array values declaration HOT 2
- Documentation: There is no grammar definition HOT 4
- Maybe bug with nested array in Neon entity HOT 3
- Parse ' - - ' string error HOT 1
- Escaping single quotes HOT 4
- Provide way to escape single quote inside single quoted string
- Nette\Neon\Encoder::encode() must be of the type string, boolean returned HOT 1
- Unexpected behavior when using unquoted date as key HOT 1
- RFC: Anchors, References, Extend HOT 1
- RFC: Encode/Decode Data Lossless (Format-preserving Printing) HOT 8
- vim support HOT 1
- URL in array can not contain "=" character HOT 3
- leading zeros trimmed from numeric string HOT 1
- INF, -INF, NAN throws TypeError in strpos
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neon.