Changes between Version 7 and Version 8 of YAMLColonInFlowContext


Ignore:
Timestamp:
03/26/10 09:44:03 (4 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • YAMLColonInFlowContext

    v7 v8  
    4848It would make sense to require ': ' when parsing a value - if you see a:b when parsing a value, you should treat that as the string "a:b". When parsing a key-value in a mapping, it should be possible to allow either url:http://pyyaml.org/ (no space) or url: http://pyyaml.org/ as you know from context that you're expecting a : to terminate a key. Of course, colons in keys are pathological and should not be tolerated ;-) 
    4949 
    50 Solution #1 does not conform with [http://yaml.org/spec/1.1/#id857181 YAML 1.1] and [http://www.yaml.org/spec/1.2/spec.html#id2759963 YAML 1.2]. YAML 1.2 does not enforce space after ':' only if the value is in quotes. 
     50Solution #1 may be natural for Python but not for other languages. Since YAML should stay language-neutral solution #2 would meet much more expectations.