Collect color / state / shape-enum semantic spans from text. State spans
cover transition endpoints, state-declaration subjects, group-list members
(&G : [a b c]; — but not the group's own name, nor &/...& nested
group references), and plain-label hook subjects (on enter x do 'act'; —
but not &group subjects). Every state span's value is the parser's
resolved name (unquoted, unescaped), while from/to cover the source
spelling including any quotes.
Collect color / state / shape-enum semantic spans from
text. State spans cover transition endpoints, state-declaration subjects, group-list members (&G : [a b c];— but not the group's own name, nor&/...&nested group references), and plain-label hook subjects (on enter x do 'act';— but not&groupsubjects). Every state span'svalueis the parser's resolved name (unquoted, unescaped), whilefrom/tocover the source spelling including any quotes.