contrib: Massively expand keywords list, and add QL pattern holes.

Based on a re-reading of the parser and lexer, along with my memory about what
these keywords do and where they should go.