Changeset 149


Ignore:
Timestamp:
04/23/06 09:40:57 (8 years ago)
Author:
xi
Message:

Raise an error for colons in the flow context.

Location:
pyyaml/trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • pyyaml/trunk/README

    r128 r149  
    1 PyYAML3000 - The next generation YAML parser for Python. 
     1PyYAML 3000 - The next generation YAML parser and emitter for Python. 
    22 
    33To install, type 'python setup.py install'. 
    44 
    5 For more information, check 'http://pyyaml.org/wiki/PyYAML'. 
     5For more information, check the PyYAML homepage: 
     6'http://pyyaml.org/wiki/PyYAML'. 
    67 
    78Post your questions and opinions to the YAML-Core mailing list: 
    89'http://lists.sourceforge.net/lists/listinfo/yaml-core'. 
    910 
    10 PyYAML3000 is written by Kirill Simonov <xi@resolvent.net>. It is released 
     11Submit bug reports and feature requests to the PyYAML bug tracker: 
     12'http://pyyaml.org/newticket?component=pyyaml'. 
     13 
     14PyYAML 3000 is written by Kirill Simonov <xi@resolvent.net>. It is released 
    1115under the MIT license. See the file LICENSE for more details. 
  • pyyaml/trunk/lib/yaml/scanner.py

    r138 r149  
    13021302                    break 
    13031303                length += 1 
     1304            # It's not clear what we should do with ':' in the flow context. 
     1305            if (self.flow_level and ch == u':' 
     1306                    and self.peek(length+1) not in u'\0 \t\r\n\x28\u2028\u2029,[]{}'): 
     1307                self.forward(length) 
     1308                raise ScannerError("while scanning a plain scalar", start_mark, 
     1309                    "found unexpected ':'", self.get_mark(), 
     1310                    "Please check http://pyyaml.org/wiki/YAMLColonInFlowContext for details.") 
    13041311            if length == 0: 
    13051312                break 
Note: See TracChangeset for help on using the changeset viewer.