summaryrefslogtreecommitdiffstats
path: root/runtime/syntax/bib.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-09-12 12:17:26 +0200
committerBram Moolenaar <Bram@vim.org>2016-09-12 12:17:26 +0200
commit220adb1e9f9e0b27d28185167d2730bf2f93057d (patch)
tree81952477c4f09698a287c23d3e04c9b92f870866 /runtime/syntax/bib.vim
parente1c8c7a6742be6072290f9aa54ae358060d9c42f (diff)
A few more runtime updates.
Diffstat (limited to 'runtime/syntax/bib.vim')
-rw-r--r--runtime/syntax/bib.vim5
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/syntax/bib.vim b/runtime/syntax/bib.vim
index f96553ec8d..f2b99e961b 100644
--- a/runtime/syntax/bib.vim
+++ b/runtime/syntax/bib.vim
@@ -2,7 +2,7 @@
" Language: BibTeX (bibliographic database format for (La)TeX)
" Maintainer: Bernd Feige <Bernd.Feige@gmx.net>
" Filenames: *.bib
-" Last Change: 2016 May 31
+" Last Change: 2016 Sep 12
" Thanks to those who pointed out problems with this file or supplied fixes!
@@ -71,7 +71,7 @@ syn keyword bibNSEntryKw contained mrclass mrnumber mrreviewer fjournal coden
" Clusters
" ========
-syn cluster bibVarContents contains=bibUnescapedSpecial,bibBrace,bibParen
+syn cluster bibVarContents contains=bibUnescapedSpecial,bibBrace,bibParen,bibMath
" This cluster is empty but things can be added externally:
"syn cluster bibCommentContents
@@ -81,6 +81,7 @@ syn match bibUnescapedSpecial contained /[^\\][%&]/hs=s+1
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 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