fixed inconsistent definitions of whitespace and newline in lexer modes