More robust bibtex parsing code in latex_cite_completions