make completion lexing slightly more reliable