Re: Draft 2008-04-06

"Brad Baxter" <[email protected]>
Newsgroups gmane.text.yaml.general
Message-ID <[email protected]>
Bug?

---
plain scalar value # this is not a comment
# this is not a comment
---
- plain scalar value # this is not a comment
 # this is not a comment (indented)
---
- plain scalar value # this is not a comment
# this is a comment
---
key: plain scalar value # this is not a comment
 # this is not a comment (indented)
---
key: plain scalar value # this is not a comment
# this is a comment
...

The specs say, "Plain scalars must never contain the ": " and " #" character
combinations. Such combinations would cause ambiguity with mapping
key: value pairs and comments."

So I expected ypaste to give me an error for all of the plain scalar values
above that contain "#".  Instead, it accepts the data as part of the scalar
value in all the places I would expect it to if there were no prohibition on
"#".

Maybe "#" is acceptable now and the wording of the specs just needs
updating?

Regards,

-- Brad

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

_______________________________________________
Yaml-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/yaml-core
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.