change regex order to ensure reserved words have precedence against
matches of equal length