consistent capitalisation of lexer states