Commits

Kirill Simonov committed 426daf6

Fix #4 (Thanks to murphy(at)rubychan.de)

  • Participants
  • Parent commits e51f297

Comments (0)

Files changed (3)

lib/yaml/scanner.py

 
         # DOCUMENT-END:     ^ '...' (' '|'\n')
         if self.column == 0:
-            prefix = self.peek(4)
             if self.prefix(3) == u'...'  \
                     and self.peek(3) in u'\0 \t\r\n\x85\u2028\u2029':
                 return True

tests/data/scan-document-end-bug.canonical

+%YAML 1.1
+---
+!!null ""

tests/data/scan-document-end-bug.data

+# Ticket #4
+---
+...