r481 - trunk/vim/patches

Pierre Habouzit madcoder at costa.debian.org
Thu Jan 26 09:59:34 UTC 2006


Author: madcoder
Date: 2006-01-26 09:59:33 +0000 (Thu, 26 Jan 2006)
New Revision: 481

Modified:
   trunk/vim/patches/155_rst.vim.diff
Log:
update patch on RST.vim

Modified: trunk/vim/patches/155_rst.vim.diff
===================================================================
--- trunk/vim/patches/155_rst.vim.diff	2006-01-25 23:30:13 UTC (rev 480)
+++ trunk/vim/patches/155_rst.vim.diff	2006-01-26 09:59:33 UTC (rev 481)
@@ -7,7 +7,7 @@
  
  " comments
 -syn region	rstComment 	matchgroup=rstComment start="^\.\.\%( \%([a-z0-9_.-]\+::\)\@!\|$\)" end="^\s\@!" contains=rstTodo
-+syn region	rstComment 	matchgroup=rstComment start="^\.\.\%( \%([\'a-z0-9_.-]\+::\)\@!\|$\)" end="^\s\@!" contains=rstTodo
++syn region	rstComment 	matchgroup=rstComment start="^\.\.\%( \%([\'\w.-]\+::\)\@!\|$\)" end="^\s\@!" contains=rstTodo
  
  syn cluster	rstCruft    contains=rstFootnoteLabel,rstCitationLabel,rstSubstitutionLabel,rstInline,rstHyperlinks,rstInternalTarget
  
@@ -17,24 +17,24 @@
  " footnotes
 -syn region	rstFootnote 	matchgroup=rstDirective start="^\.\. \[\%([#*]\|[0-9]\+\|#[a-z0-9_.-]\+\)\]\s" end="^\s\@!" contains=@rstCruft
 -syn match	rstFootnoteLabel "\[\%([#*]\|[0-9]\+\|#[a-z0-9_.-]\+\)\]_"
-+syn region	rstFootnote 	matchgroup=rstDirective start="^\.\. \[\%([#*]\|[0-9]\+\|#[\'a-z0-9_.-]\+\)\]\s" end="^\s\@!" contains=@rstCruft
-+syn match	rstFootnoteLabel "\[\%([#*]\|[0-9]\+\|#[\'a-z0-9_.-]\+\)\]_"
++syn region	rstFootnote 	matchgroup=rstDirective start="^\.\. \[\%([#*]\|[0-9]\+\|#[\'\w.-]\+\)\]\s" end="^\s\@!" contains=@rstCruft
++syn match	rstFootnoteLabel "\[\%([#*]\|[0-9]\+\|#[\'\w.-]\+\)\]_"
  
  " citations
 -syn region	rstCitation 	matchgroup=rstDirective start="^\.\. \[[a-z0-9_.-]\+\]\s" end="^\s\@!" contains=@rstCruft
 -syn match	rstCitationLabel "\[[a-z0-9_.-]\+\]_"
-+syn region	rstCitation 	matchgroup=rstDirective start="^\.\. \[[\'a-z0-9_.-]\+\]\s" end="^\s\@!" contains=@rstCruft
-+syn match	rstCitationLabel "\[[\'a-z0-9_.-]\+\]_"
++syn region	rstCitation 	matchgroup=rstDirective start="^\.\. \[[\'\w.-]\+\]\s" end="^\s\@!" contains=@rstCruft
++syn match	rstCitationLabel "\[[\'\w.-]\+\]_"
  
  " directives
 -syn region	rstDirectiveBody matchgroup=rstDirective start="^\.\. [a-z0-9_.-]\+::" end="^\s\@!"
-+syn region	rstDirectiveBody matchgroup=rstDirective start="^\.\. [\'a-z0-9_.-]\+::" end="^\s\@!"
++syn region	rstDirectiveBody matchgroup=rstDirective start="^\.\. [\'\w.-]\+::" end="^\s\@!"
  
  " substitutions
 -syn region	rstSubstitution matchgroup=rstDirective start="^\.\. |[a-z0-9_.-]|\s[a-z0-9_.-]\+::\s" end="^\s\@!" contains=@rstCruft
 -syn match	rstSubstitutionLabel "|[a-z0-9_.-]|"
-+syn region	rstSubstitution matchgroup=rstDirective start="^\.\. |[\'a-z0-9_.-]|\s[\'a-z0-9_.-]\+::\s" end="^\s\@!" contains=@rstCruft
-+syn match	rstSubstitutionLabel "|[\'a-z0-9_.-]|"
++syn region	rstSubstitution matchgroup=rstDirective start="^\.\. |[\'\w.-]|\s[\'\w.-]\+::\s" end="^\s\@!" contains=@rstCruft
++syn match	rstSubstitutionLabel "|[\'\w.-]|"
  
  " inline markup
  syn match	rstInline	"\*\{1,2}\S\%([^*]*\S\)\=\*\{1,2}"
@@ -42,7 +42,7 @@
  
  " hyperlinks
 -syn region	rstHyperlinks	matchgroup=RstDirective start="^\.\. _[a-z0-9_. -]\+:\s" end="^\s\@!" contains=@rstCruft
-+syn region	rstHyperlinks	matchgroup=RstDirective start="^\.\. _[\'a-z0-9_. -]\+:\s" end="^\s\@!" contains=@rstCruft
++syn region	rstHyperlinks	matchgroup=RstDirective start="^\.\. _[\'\w. -]\+:\s" end="^\s\@!" contains=@rstCruft
  
 -syn match	rstHyperlinksLabel	"`\S\%([^`]*\S\)\=`__\=\>"
 +syn match	rstHyperlinksLabel	"`\S\%(\([^`]\|\n\)*\S\)\=`__\=\>"




More information about the pkg-vim-maintainers mailing list