[Vim-latex-devel] Tiny patch to handle spaces in .bib files
Brought to you by:
srinathava,
tmaas
From: yabo <ya...@lr...> - 2008-11-25 10:54:44
|
Hello, I've been using vim-latex for a while and was always annoyed by the problem of spaces in .bib entries like : @InProceedings{ key, ... This was not handled properly and completly broke auto-completion. I propose this tiny patch that solves the problem : $ diff -u bibtools.old.py bibtools.py --- bibtools.old.py 2008-11-19 15:33:22.000000000 +0100 +++ bibtools.py 2008-11-19 15:29:31.000000000 +0100 @@ -28,7 +28,7 @@ for k, v in macros.iteritems(): txt = txt.replace(k, '{'+v+'}') - m = re.match(r'\s*@(\w+){((\S+),)?(.*)}\s*', txt, re.MULTILINE | re.DOTALL) + m = re.match(r'\s*@(\w+){\s*((\S+),)?(.*)}\s*', txt, re.MULTILINE | re.DOTALL) if not m: return None $ Thanks for this great plugin :) -- yabo |