Am Mittwoch, den 26.10.2016, 02:13 -0700 schrieb Konfekt:
> The highlighting stops if an entry contains an escaped `$`, for
> example
> ```tex
> @Book{book
> title = {book},
> year = {2000},
> author = {author}
> howpublished = {editor DM 72.00; \$ 34.30 (1981)}
> }
> ```
Could you try the attached patch?
Best,
Bernd
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
=== modified file 'bib.vim'
--- bib.vim 2016-09-13 12:55:18 +0000
+++ bib.vim 2016-10-26 10:30:20 +0000
@@ -81,7 +81,7 @@
syn match bibKey contained /\s*[^ \t}="]\+,/hs=s,he=e-1 nextgroup=bibField
syn match bibVariable contained /[^{}," \t=]/
syn region bibComment start=/./ end=/^\s*@/me=e-1 contains=@bibCommentContents nextgroup=bibEntry
-syn region bibMath contained start=/\$/ end=/\$/ skip=/\(\\\$\)/
+syn region bibMath contained start=/[^\\]\$/ end=/\$/ skip=/\(\\\$\)/
syn region bibQuote contained start=/"/ end=/"/ skip=/\(\\"\)/ contains=@bibVarContents
syn region bibBrace contained start=/{/ end=/}/ skip=/\(\\[{}]\)/ contains=@bibVarContents
syn region bibParen contained start=/(/ end=/)/ skip=/\(\\[()]\)/ contains=@bibVarContents