Changes between Version 6 and Version 7 of YAMLColonInFlowContext


Ignore:
Timestamp:
03/26/10 09:31:30 (4 years ago)
Author:
py4fun@…
Comment:

space after : is required

Legend:

Unmodified
Added
Removed
Modified
  • YAMLColonInFlowContext

    v6 v7  
    4747}}} 
    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 ;-) 
     49 
     50Solution #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.