---
source: crates/panache-parser/tests/yaml.rs
expression: snapshot
---
case_id: F8F9
input: " # Strip\n  # Comments:\nstrip: |-\n  # text\n  \n # Clip\n  # comments:\n\nclip: |\n  # text\n \n # Keep\n  # comments:\n\nkeep: |+\n  # text\n\n # Trail\n  # comments.\n"
diagnostics:

cst:
YAML_STREAM@0..152
  WHITESPACE@0..1 " "
  YAML_COMMENT@1..8 "# Strip"
  NEWLINE@8..9 "\n"
  WHITESPACE@9..11 "  "
  YAML_COMMENT@11..22 "# Comments:"
  NEWLINE@22..23 "\n"
  YAML_DOCUMENT@23..152
    YAML_BLOCK_MAP@23..152
      YAML_BLOCK_MAP_ENTRY@23..68
        YAML_BLOCK_MAP_KEY@23..29
          YAML_SCALAR@23..28
            YAML_SCALAR_TEXT@23..28 "strip"
          YAML_COLON@28..29 ":"
        YAML_BLOCK_MAP_VALUE@29..68
          WHITESPACE@29..30 " "
          YAML_SCALAR@30..45
            YAML_SCALAR_TEXT@30..32 "|-"
            NEWLINE@32..33 "\n"
            YAML_SCALAR_TEXT@33..41 "  # text"
            NEWLINE@41..42 "\n"
            YAML_SCALAR_TEXT@42..44 "  "
            NEWLINE@44..45 "\n"
          WHITESPACE@45..46 " "
          YAML_COMMENT@46..52 "# Clip"
          NEWLINE@52..53 "\n"
          WHITESPACE@53..55 "  "
          YAML_COMMENT@55..66 "# comments:"
          NEWLINE@66..67 "\n"
          NEWLINE@67..68 "\n"
      YAML_BLOCK_MAP_ENTRY@68..110
        YAML_BLOCK_MAP_KEY@68..73
          YAML_SCALAR@68..72
            YAML_SCALAR_TEXT@68..72 "clip"
          YAML_COLON@72..73 ":"
        YAML_BLOCK_MAP_VALUE@73..110
          WHITESPACE@73..74 " "
          YAML_SCALAR@74..87
            YAML_SCALAR_TEXT@74..75 "|"
            NEWLINE@75..76 "\n"
            YAML_SCALAR_TEXT@76..84 "  # text"
            NEWLINE@84..85 "\n"
            YAML_SCALAR_TEXT@85..86 " "
            NEWLINE@86..87 "\n"
          WHITESPACE@87..88 " "
          YAML_COMMENT@88..94 "# Keep"
          NEWLINE@94..95 "\n"
          WHITESPACE@95..97 "  "
          YAML_COMMENT@97..108 "# comments:"
          NEWLINE@108..109 "\n"
          NEWLINE@109..110 "\n"
      YAML_BLOCK_MAP_ENTRY@110..152
        YAML_BLOCK_MAP_KEY@110..115
          YAML_SCALAR@110..114
            YAML_SCALAR_TEXT@110..114 "keep"
          YAML_COLON@114..115 ":"
        YAML_BLOCK_MAP_VALUE@115..152
          WHITESPACE@115..116 " "
          YAML_SCALAR@116..129
            YAML_SCALAR_TEXT@116..118 "|+"
            NEWLINE@118..119 "\n"
            YAML_SCALAR_TEXT@119..127 "  # text"
            NEWLINE@127..128 "\n"
            NEWLINE@128..129 "\n"
          WHITESPACE@129..130 " "
          YAML_COMMENT@130..137 "# Trail"
          NEWLINE@137..138 "\n"
          WHITESPACE@138..140 "  "
          YAML_COMMENT@140..151 "# comments."
          NEWLINE@151..152 "\n"
