r698 - in /trunk/packages/vim: debian/changelog patches/po.vim.diff
patches/series
jamessan at users.alioth.debian.org
jamessan at users.alioth.debian.org
Tue May 23 12:34:22 UTC 2006
Author: jamessan
Date: Tue May 23 12:34:16 2006
New Revision: 698
URL: http://svn.debian.org/wsvn/pkg-vim/?sc=1&rev=698
Log:
Add po.vim.diff (#368589)
Added:
trunk/packages/vim/patches/po.vim.diff
Modified:
trunk/packages/vim/debian/changelog
trunk/packages/vim/patches/series
Modified: trunk/packages/vim/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim/debian/changelog?rev=698&op=diff
==============================================================================
--- trunk/packages/vim/debian/changelog (original)
+++ trunk/packages/vim/debian/changelog Tue May 23 12:34:16 2006
@@ -1,3 +1,11 @@
+vim (1:7.0-017+5) unstable; urgency=low
+
+ [ James Vega ]
+ * Added po.vim.diff which locally enables line continuations while sourcing
+ the po.vim syntax file. (closes: #368589)
+
+ -- James Vega <jamessan at debian.org> Tue, 23 May 2006 08:24:41 -0400
+
vim (1:7.0-017+4) unstable; urgency=low
[ James Vega ]
Added: trunk/packages/vim/patches/po.vim.diff
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim/patches/po.vim.diff?rev=698&op=file
==============================================================================
--- trunk/packages/vim/patches/po.vim.diff (added)
+++ trunk/packages/vim/patches/po.vim.diff Tue May 23 12:34:16 2006
@@ -1,0 +1,59 @@
+Index: vim/runtime/syntax/po.vim
+===================================================================
+--- vim/runtime/syntax/po.vim.orig
++++ vim/runtime/syntax/po.vim
+@@ -11,6 +11,9 @@
+ finish
+ endif
+
++let s:cpo_save = &cpo
++set cpo-=C " Allow line continuations
++
+ syn sync minlines=10
+
+ " Identifiers
+@@ -26,9 +29,9 @@
+ " Translation blocks
+ syn region poMsgID matchgroup=poStatementMsgid start=+^msgid "+rs=e-1 matchgroup=poStringID end=+^msgstr\(\|\[[\]0\[]\]\) "+me=s-1 contains=poStringID,poStatementMsgidplural,poStatementMsgid
+ syn region poMsgSTR matchgroup=poStatementMsgstr start=+^msgstr\(\|\[[\]0\[]\]\) "+rs=e-1 matchgroup=poStringSTR end=+\n\n+me=s-1 contains=poStringSTR,poStatementMsgstr
+-syn region poStringID start=+"+ skip=+\\\\\|\\"+ end=+"+ contained
++syn region poStringID start=+"+ skip=+\\\\\|\\"+ end=+"+ contained
+ \ contains=poSpecial,poFormat,poCommentKDE,poPluralKDE,poKDEdesktopFile,poHtml,poAccelerator,poHtmlNot,poVariable
+-syn region poStringSTR start=+"+ skip=+\\\\\|\\"+ end=+"+ contained
++syn region poStringSTR start=+"+ skip=+\\\\\|\\"+ end=+"+ contained
+ \ contains=poSpecial,poFormat,poHeaderItem,poCommentKDEError,poHeaderUndefined,poPluralKDEError,poMsguniqError,poKDEdesktopFile,poHtml,poAccelerator,poHtmlNot,poVariable
+
+ " Header and Copyright
+@@ -40,7 +43,7 @@
+ syn match poComment "^#.*$"
+ syn keyword poFlagFuzzy fuzzy contained
+ syn match poCommentTranslator "^# .*$" contains=poCopyrightUnset
+-syn match poCommentAutomatic "^#\..*$"
++syn match poCommentAutomatic "^#\..*$"
+ syn match poCommentSources "^#:.*$"
+ syn match poCommentFlags "^#,.*$" contains=poFlagFuzzy
+
+@@ -57,13 +60,13 @@
+ syn region poMsguniqError matchgroup=poMsguniqErrorMarkers start="#-#-#-#-#" end='#\("\n"\|\)-\("\n"\|\)#\("\n"\|\)-\("\n"\|\)#\("\n"\|\)-\("\n"\|\)#\("\n"\|\)-\("\n"\|\)#\("\n"\|\)\\n' contained
+
+ " Obsolete messages
+-syn match poObsolete "^#\~.*$"
++syn match poObsolete "^#\~.*$"
+
+ " KDE Name= handling
+ syn match poKDEdesktopFile "\"\(Name\|Comment\|GenericName\|Description\|Keywords\|About\)="ms=s+1,me=e-1
+
+ " Accelerator keys - this messes up if the preceding or following char is a multibyte unicode char
+-syn match poAccelerator contained "[^&_~][&_~]\(\a\|\d\)[^:]"ms=s+1,me=e-1
++syn match poAccelerator contained "[^&_~][&_~]\(\a\|\d\)[^:]"ms=s+1,me=e-1
+
+ " Variables simple
+ syn match poVariable contained "%\d"
+@@ -118,6 +121,7 @@
+ delcommand HiLink
+ endif
+
++let &cpo = s:cpo_save
+ let b:current_syntax = "po"
+
+ " vim:set ts=8 sts=2 sw=2 noet:
Modified: trunk/packages/vim/patches/series
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim/patches/series?rev=698&op=diff
==============================================================================
--- trunk/packages/vim/patches/series (original)
+++ trunk/packages/vim/patches/series Tue May 23 12:34:16 2006
@@ -2,3 +2,4 @@
xdefaults.vim.diff -p0
debcontrol.vim.diff -p0
edit.c.diff -p0
+po.vim.diff -p0
More information about the pkg-vim-maintainers
mailing list