Add `keypattern` rule helper

This way, pattern rules (e.g. golang's comment) can be easily given the
same precedence as keyword rules.