r484 - trunk/vim/patches

James Vega jamessan at costa.debian.org
Thu Jan 26 14:02:44 UTC 2006


Author: jamessan
Date: 2006-01-26 14:02:43 +0000 (Thu, 26 Jan 2006)
New Revision: 484

Modified:
   trunk/vim/patches/155_rst.vim.diff
Log:
Re-add the underscores that were lost when switching from \w to [:alpha:]


Modified: trunk/vim/patches/155_rst.vim.diff
===================================================================
--- trunk/vim/patches/155_rst.vim.diff	2006-01-26 11:26:48 UTC (rev 483)
+++ trunk/vim/patches/155_rst.vim.diff	2006-01-26 14:02:43 UTC (rev 484)
@@ -7,7 +7,7 @@
  
  " comments
 -syn region	rstComment 	matchgroup=rstComment start="^\.\.\%( \%([a-z0-9_.-]\+::\)\@!\|$\)" end="^\s\@!" contains=rstTodo
-+syn region	rstComment 	matchgroup=rstComment start="^\.\.\%( \%([[:alnum:]\'.-]\+::\)\@!\|$\)" end="^\s\@!" contains=rstTodo
++syn region	rstComment 	matchgroup=rstComment start="^\.\.\%( \%([[:alnum:]_\'.-]\+::\)\@!\|$\)" 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]\+\|#[[:alnum:]\'.-]\+\)\]\s" end="^\s\@!" contains=@rstCruft
-+syn match	rstFootnoteLabel "\[\%([#*]\|[0-9]\+\|#[[:alnum:]\'.-]\+\)\]_"
++syn region	rstFootnote 	matchgroup=rstDirective start="^\.\. \[\%([#*]\|[0-9]\+\|#[[:alnum:]_\'.-]\+\)\]\s" end="^\s\@!" contains=@rstCruft
++syn match	rstFootnoteLabel "\[\%([#*]\|[0-9]\+\|#[[:alnum:]_\'.-]\+\)\]_"
  
  " 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="^\.\. \[[[:alnum:]\'.-]\+\]\s" end="^\s\@!" contains=@rstCruft
-+syn match	rstCitationLabel "\[[[:alnum:]\'.-]\+\]_"
++syn match	rstCitationLabel "\[[[:alnum:]_\'.-]\+\]_"
  
  " directives
 -syn region	rstDirectiveBody matchgroup=rstDirective start="^\.\. [a-z0-9_.-]\+::" end="^\s\@!"
-+syn region	rstDirectiveBody matchgroup=rstDirective start="^\.\. [[:alnum:]\'.-]\+::" end="^\s\@!"
++syn region	rstDirectiveBody matchgroup=rstDirective start="^\.\. [[:alnum:]_\'.-]\+::" 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="^\.\. |[[:alnum:]\'.-]|\s[[:alnum:]\'.-]\+::\s" end="^\s\@!" contains=@rstCruft
-+syn match	rstSubstitutionLabel "|[[:alnum:]\'.-]|"
++syn region	rstSubstitution matchgroup=rstDirective start="^\.\. |[[:alnum:]_\'.-]|\s[[:alnum:]\'.-]\+::\s" end="^\s\@!" contains=@rstCruft
++syn match	rstSubstitutionLabel "|[[:alnum:]_\'.-]|"
  
  " 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="^\.\. _[[:alnum:]\'. -]\+:\s" end="^\s\@!" contains=@rstCruft
++syn region	rstHyperlinks	matchgroup=RstDirective start="^\.\. _[[:alnum:]_\'. -]\+:\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