REVIEW: [NX-501] Token Pattern Parser

JIRA: https://issues.sonatype.org/browse/NX-501
Minor: consider moving this `iterator.next();` into `parseVariable` for consistency / cleaner looking code.