improve lex/parse error locations