Scanner.scanAnchor

Token scanAnchor(const TokenID id) @safe

Scan an alias or an anchor.

The specification does not restrict characters for anchors and aliases. This may lead to problems, for instance, the document: [ *alias, value ] can be interpteted in two ways, as [ "value" ] and [ *alias , "value" ] Therefore we restrict aliases to ASCII alphanumeric characters.