---
source: crates/panache-parser/tests/yaml.rs
assertion_line: 312
expression: snapshot
---
case_id: JR7V
input: "- a?string\n- another ? string\n- key: value?\n- [a?string]\n- [another ? string]\n- {key: value? }\n- {key: value?}\n- {key?: value }\n"
diagnostics:

cst:
YAML_STREAM@0..128
  YAML_DOCUMENT@0..128
    YAML_BLOCK_SEQUENCE@0..128
      YAML_BLOCK_SEQUENCE_ITEM@0..11
        YAML_BLOCK_SEQ_ENTRY@0..1 "-"
        WHITESPACE@1..2 " "
        YAML_SCALAR@2..10
          YAML_SCALAR_TEXT@2..10 "a?string"
        NEWLINE@10..11 "\n"
      YAML_BLOCK_SEQUENCE_ITEM@11..30
        YAML_BLOCK_SEQ_ENTRY@11..12 "-"
        WHITESPACE@12..13 " "
        YAML_SCALAR@13..29
          YAML_SCALAR_TEXT@13..29 "another ? string"
        NEWLINE@29..30 "\n"
      YAML_BLOCK_SEQUENCE_ITEM@30..44
        YAML_BLOCK_SEQ_ENTRY@30..31 "-"
        WHITESPACE@31..32 " "
        YAML_BLOCK_MAP@32..44
          YAML_BLOCK_MAP_ENTRY@32..44
            YAML_BLOCK_MAP_KEY@32..36
              YAML_SCALAR@32..35
                YAML_SCALAR_TEXT@32..35 "key"
              YAML_COLON@35..36 ":"
            YAML_BLOCK_MAP_VALUE@36..44
              WHITESPACE@36..37 " "
              YAML_SCALAR@37..43
                YAML_SCALAR_TEXT@37..43 "value?"
              NEWLINE@43..44 "\n"
      YAML_BLOCK_SEQUENCE_ITEM@44..57
        YAML_BLOCK_SEQ_ENTRY@44..45 "-"
        WHITESPACE@45..46 " "
        YAML_FLOW_SEQUENCE@46..56
          YAML_FLOW_INDICATOR@46..47 "["
          YAML_FLOW_SEQUENCE_ITEM@47..55
            YAML_SCALAR@47..55
              YAML_SCALAR_TEXT@47..55 "a?string"
          YAML_FLOW_INDICATOR@55..56 "]"
        NEWLINE@56..57 "\n"
      YAML_BLOCK_SEQUENCE_ITEM@57..78
        YAML_BLOCK_SEQ_ENTRY@57..58 "-"
        WHITESPACE@58..59 " "
        YAML_FLOW_SEQUENCE@59..77
          YAML_FLOW_INDICATOR@59..60 "["
          YAML_FLOW_SEQUENCE_ITEM@60..76
            YAML_SCALAR@60..76
              YAML_SCALAR_TEXT@60..76 "another ? string"
          YAML_FLOW_INDICATOR@76..77 "]"
        NEWLINE@77..78 "\n"
      YAML_BLOCK_SEQUENCE_ITEM@78..95
        YAML_BLOCK_SEQ_ENTRY@78..79 "-"
        WHITESPACE@79..80 " "
        YAML_FLOW_MAP@80..94
          YAML_FLOW_INDICATOR@80..81 "{"
          YAML_FLOW_MAP_ENTRY@81..93
            YAML_FLOW_MAP_KEY@81..85
              YAML_SCALAR@81..84
                YAML_SCALAR_TEXT@81..84 "key"
              YAML_COLON@84..85 ":"
            YAML_FLOW_MAP_VALUE@85..93
              WHITESPACE@85..86 " "
              YAML_SCALAR@86..93
                YAML_SCALAR_TEXT@86..93 "value? "
          YAML_FLOW_INDICATOR@93..94 "}"
        NEWLINE@94..95 "\n"
      YAML_BLOCK_SEQUENCE_ITEM@95..111
        YAML_BLOCK_SEQ_ENTRY@95..96 "-"
        WHITESPACE@96..97 " "
        YAML_FLOW_MAP@97..110
          YAML_FLOW_INDICATOR@97..98 "{"
          YAML_FLOW_MAP_ENTRY@98..109
            YAML_FLOW_MAP_KEY@98..102
              YAML_SCALAR@98..101
                YAML_SCALAR_TEXT@98..101 "key"
              YAML_COLON@101..102 ":"
            YAML_FLOW_MAP_VALUE@102..109
              WHITESPACE@102..103 " "
              YAML_SCALAR@103..109
                YAML_SCALAR_TEXT@103..109 "value?"
          YAML_FLOW_INDICATOR@109..110 "}"
        NEWLINE@110..111 "\n"
      YAML_BLOCK_SEQUENCE_ITEM@111..128
        YAML_BLOCK_SEQ_ENTRY@111..112 "-"
        WHITESPACE@112..113 " "
        YAML_FLOW_MAP@113..127
          YAML_FLOW_INDICATOR@113..114 "{"
          YAML_FLOW_MAP_ENTRY@114..126
            YAML_FLOW_MAP_KEY@114..119
              YAML_SCALAR@114..118
                YAML_SCALAR_TEXT@114..118 "key?"
              YAML_COLON@118..119 ":"
            YAML_FLOW_MAP_VALUE@119..126
              WHITESPACE@119..120 " "
              YAML_SCALAR@120..126
                YAML_SCALAR_TEXT@120..126 "value "
          YAML_FLOW_INDICATOR@126..127 "}"
        NEWLINE@127..128 "\n"
