r926 - in /trunk/runtime: ftplugin/debcontrol.vim syntax/debchangelog.vim

jamessan at users.alioth.debian.org jamessan at users.alioth.debian.org
Sun Apr 22 15:10:03 UTC 2007


Author: jamessan
Date: Sun Apr 22 15:10:01 2007
New Revision: 926

URL: http://svn.debian.org/wsvn/?sc=1&rev=926
Log:
Add etch-backports/etch-volatile to syntax/debchangelog.vim
Allow users to disable folding of control files.

Modified:
    trunk/runtime/ftplugin/debcontrol.vim
    trunk/runtime/syntax/debchangelog.vim

Modified: trunk/runtime/ftplugin/debcontrol.vim
URL: http://svn.debian.org/wsvn/trunk/runtime/ftplugin/debcontrol.vim?rev=926&op=diff
==============================================================================
--- trunk/runtime/ftplugin/debcontrol.vim (original)
+++ trunk/runtime/ftplugin/debcontrol.vim Sun Apr 22 15:10:01 2007
@@ -11,7 +11,9 @@
 let b:did_ftplugin=1
 
 " {{{1 Local settings (do on every load)
-setlocal foldmethod=expr
+if !exists("g:debcontrol_fold_disable")
+  setlocal foldmethod=expr
+endif
 setlocal foldexpr=DebControlFold(v:lnum)
 setlocal foldtext=DebControlFoldText()
 setlocal textwidth=0

Modified: trunk/runtime/syntax/debchangelog.vim
URL: http://svn.debian.org/wsvn/trunk/runtime/syntax/debchangelog.vim?rev=926&op=diff
==============================================================================
--- trunk/runtime/syntax/debchangelog.vim (original)
+++ trunk/runtime/syntax/debchangelog.vim Sun Apr 22 15:10:01 2007
@@ -19,7 +19,7 @@
 " Define some common expressions we can use later on
 syn match debchangelogName	contained "^[[:alpha:]][[:alnum:].+-]\+ "
 syn match debchangelogUrgency	contained "; urgency=\(low\|medium\|high\|critical\|emergency\)\( \S.*\)\="
-syn match debchangelogTarget	contained "\( stable\| frozen\| unstable\| testing-proposed-updates\| experimental\| sarge-backports\| sarge-volatile\| stable-security\| testing-security\)\+"
+syn match debchangelogTarget	contained "\( stable\| frozen\| unstable\| testing-proposed-updates\| experimental\| \%(sarge\|etch\)-backports\| \%(sarge\|etch\)-volatile\| stable-security\| testing-security\)\+"
 syn match debchangelogVersion	contained "(.\{-})"
 syn match debchangelogCloses	contained "closes:\s*\(bug\)\=#\=\s\=\d\+\(,\s*\(bug\)\=#\=\s\=\d\+\)*"
 syn match debchangelogEmail	contained "[_=[:alnum:].+-]\+@[[:alnum:]./\-]\+"




More information about the pkg-vim-maintainers mailing list