RawToken:
| { kind: "word"; pos: number; raw: string; value: string }
| { flags: string; kind: "short-flags"; pos: number; raw: string }
| { kind: "long-flag"; name: string; pos: number; raw: string }
| {
kind: "long-with-value";
name: string;
pos: number;
raw: string;
value: string;
}
| { kind: "stop-options"; pos: number; raw: string }
Classified raw token. The matcher binds these to a YAML definition.
rawis the verbatim slice of the original input the token came from;posis its byte offset. Both are used by the matcher to reconstruct greedy-field text by slicing the original input from the position immediately after the last consumed token.