Regex tokenizing fix after typeof and yield

Fixes #547