3 ms·
Yes! There is the same ambiguity in Yaml, so syntax highlighters of the format don't agree where a string ends... The site even has an ambiguous example: three
by PhiLho 10y ago
Yes! There is the same ambiguity in Yaml, so syntax highlighters of the format don't agree where a string ends...
The site even has an ambiguous example:
three: 4 # oops
Well, is that "4 # oops" or 4?
I saw no rule about ending comments, and they say that
three: 3 times
is a string.
I have seen no formal specification of the grammar, so we already have lot of ambiguity. Good luck to implementers...
Seriously, removing the "no quotes needed" rule would improve greatly the format. If you want to include HTML with double quotes literally, just use the multiline string format and be done.