add support for different cases of lex (#631)
Seeing something unexpected? Take a look at the GitHub commits guide.