Prepare lexer for advanced constructs