---
source: crates/panache-parser/tests/yaml.rs
assertion_line: 312
expression: snapshot
---
case_id: 6ZKB
input: "Document\n---\n# Empty\n...\n%YAML 1.2\n---\nmatches %: 20\n"
diagnostics:

cst:
YAML_STREAM@0..53
  YAML_DOCUMENT@0..9
    YAML_SCALAR@0..8
      YAML_SCALAR_TEXT@0..8 "Document"
    NEWLINE@8..9 "\n"
  YAML_DOCUMENT@9..24
    YAML_DOCUMENT_START@9..12 "---"
    NEWLINE@12..13 "\n"
    YAML_COMMENT@13..20 "# Empty"
    NEWLINE@20..21 "\n"
    YAML_DOCUMENT_END@21..24 "..."
  NEWLINE@24..25 "\n"
  YAML_DOCUMENT@25..53
    YAML_DIRECTIVE@25..34 "%YAML 1.2"
    NEWLINE@34..35 "\n"
    YAML_DOCUMENT_START@35..38 "---"
    NEWLINE@38..39 "\n"
    YAML_BLOCK_MAP@39..53
      YAML_BLOCK_MAP_ENTRY@39..53
        YAML_BLOCK_MAP_KEY@39..49
          YAML_SCALAR@39..48
            YAML_SCALAR_TEXT@39..48 "matches %"
          YAML_COLON@48..49 ":"
        YAML_BLOCK_MAP_VALUE@49..53
          WHITESPACE@49..50 " "
          YAML_SCALAR@50..52
            YAML_SCALAR_TEXT@50..52 "20"
          NEWLINE@52..53 "\n"
