Changes between Version 5 and Version 6 of YAMLColonInFlowContext


Ignore:
Timestamp:
10/09/09 11:02:14 (5 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • YAMLColonInFlowContext

    v5 v6  
    4040I would definitely agree for the colon-space solution (it fixes these examples, but not, I suppose, every issue.) 
    4141 
     42Yet another example: 
     43{{{ 
     44found unexpected ':' 
     45  in "<string>", line 1, column 11: 
     46    urls: [ftp://ftp.cdrom.com/] 
     47}}} 
     48It 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 ;-)