move $( ~ ) into variable token

This way contextualizers in code, quotes _and_ regexes behave the same.