---
source: crates/panache-parser/tests/yaml.rs
assertion_line: 312
expression: snapshot
---
case_id: 9WXW
input: "# Private\n!foo \"bar\"\n...\n# Global\n%TAG ! tag:example.com,2000:app/\n---\n!foo \"bar\"\n"
diagnostics:

cst:
YAML_STREAM@0..82
  YAML_COMMENT@0..9 "# Private"
  NEWLINE@9..10 "\n"
  YAML_DOCUMENT@10..24
    YAML_TAG@10..14 "!foo"
    WHITESPACE@14..15 " "
    YAML_SCALAR@15..20
      YAML_SCALAR_TEXT@15..20 "\"bar\""
    NEWLINE@20..21 "\n"
    YAML_DOCUMENT_END@21..24 "..."
  NEWLINE@24..25 "\n"
  YAML_COMMENT@25..33 "# Global"
  NEWLINE@33..34 "\n"
  YAML_DOCUMENT@34..82
    YAML_DIRECTIVE@34..66 "%TAG ! tag:example.co ..."
    NEWLINE@66..67 "\n"
    YAML_DOCUMENT_START@67..70 "---"
    NEWLINE@70..71 "\n"
    YAML_TAG@71..75 "!foo"
    WHITESPACE@75..76 " "
    YAML_SCALAR@76..81
      YAML_SCALAR_TEXT@76..81 "\"bar\""
    NEWLINE@81..82 "\n"
