Parses a reference in the @<scope>/<name>:<version> form.
@<scope>/<name>:<version>
the parsed reference
text to parse
if reference does not match the syntax, or if any of its parts is not a valid path segment