Lexing of boolean operators failed when they were used as prefix to a wo...

When a match word began with the letters AND, OR, NOT, this was mistakenly parsed as being a boolean operator. This fixes that and tests against regression.