r281 - trunk/vim/debian/patches

Stefano Zacchiroli zack at costa.debian.org
Tue Aug 2 09:16:48 UTC 2005


Author: zack
Date: 2005-08-02 09:16:48 +0000 (Tue, 02 Aug 2005)
New Revision: 281

Modified:
   trunk/vim/debian/patches/132_bib.vim.diff
Log:
added handling of @Comment{..} comments for bibtex


Modified: trunk/vim/debian/patches/132_bib.vim.diff
===================================================================
--- trunk/vim/debian/patches/132_bib.vim.diff	2005-08-02 08:53:42 UTC (rev 280)
+++ trunk/vim/debian/patches/132_bib.vim.diff	2005-08-02 09:16:48 UTC (rev 281)
@@ -1,6 +1,6 @@
 diff -urN vim63/runtime/syntax/bib.vim vim63.new/runtime/syntax/bib.vim
 --- vim63/runtime/syntax/bib.vim	2001-09-02 14:43:48.000000000 +0200
-+++ vim63.new/runtime/syntax/bib.vim	2005-08-01 22:48:40.000000000 +0200
++++ vim63.new/runtime/syntax/bib.vim	2005-08-02 11:14:03.000000000 +0200
 @@ -47,7 +47,7 @@
  syn match bibUnescapedSpecial contained /[^\\][%&]/hs=s+1
  syn match bibKey contained /\s*[^ \t}="]\+,/hs=s,he=e-1 nextgroup=bibField
@@ -10,3 +10,19 @@
  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
+@@ -60,6 +60,7 @@
+ else
+   syn region bibEntry start=/@\S\+[{(]/ end=/^\s*[})]/ transparent fold contains=bibType,bibEntryData nextgroup=bibComment
+ endif
++syn region bibComment2 start=/@Comment[{(]/ end=/^\s*@/me=e-1 contains=@bibCommentContents nextgroup=bibEntry
+ 
+ " Synchronization
+ " ===============
+@@ -86,6 +87,7 @@
+   HiLink bibVariable	Constant
+   HiLink bibUnescapedSpecial	Error
+   HiLink bibComment	Comment
++  HiLink bibComment2	Comment
+   delcommand HiLink
+ endif
+ 




More information about the pkg-vim-maintainers mailing list