Make queryLexState an explicit argument