| 1 | ### Eclipse Workspace Patch 1.0 |
|---|
| 2 | #P pyyaml-hg |
|---|
| 3 | Index: lib/yaml/scanner.py |
|---|
| 4 | =================================================================== |
|---|
| 5 | --- lib/yaml/scanner.py (revision 344) |
|---|
| 6 | +++ lib/yaml/scanner.py (working copy) |
|---|
| 7 | @@ -280,7 +280,9 @@ |
|---|
| 8 | # - should be no longer than 1024 characters. |
|---|
| 9 | # Disabling this procedure will allow simple keys of any length and |
|---|
| 10 | # height (may cause problems if indentation is broken though). |
|---|
| 11 | - for level in self.possible_simple_keys.keys(): |
|---|
| 12 | + keys_rev = self.possible_simple_keys.keys() |
|---|
| 13 | + keys_rev = keys_rev.reverse() |
|---|
| 14 | + for level in keys_rev: |
|---|
| 15 | key = self.possible_simple_keys[level] |
|---|
| 16 | if key.line != self.line \ |
|---|
| 17 | or self.index-key.index > 1024: |
|---|