aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ext_depends/D-YAML/test/unclosed-bracket.yaml
blob: aae8c4fe2f40311bb854f3482445fa31442b6096 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
%YAML 1.1
---
- name: unclosed-bracket
  fail: true
  mark: { line: 7, column: 1 }
  mark2: { line: 2, column: 7 }
  error: "While parsing a flow sequence, expected ',' or ']', but got: streamEnd"
  yaml: |
    test:
        - [ foo: bar
    # comment the rest of the stream to let the scanner detect the problem.
    #    - baz
    #"we could have detected the unclosed bracket on the above line, but this would forbid such syntax as": {
    #}