diff options
Diffstat (limited to 'runtime/syntax/rst.vim')
-rw-r--r-- | runtime/syntax/rst.vim | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/runtime/syntax/rst.vim b/runtime/syntax/rst.vim index d5a76a2b6..245c3aedf 100644 --- a/runtime/syntax/rst.vim +++ b/runtime/syntax/rst.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: reStructuredText documentation format " Maintainer: Nikolai Weibull <now@bitwi.se> -" Latest Revision: 2006-07-04 +" Latest Revision: 2009-05-25 if exists("b:current_syntax") finish @@ -12,12 +12,9 @@ set cpo&vim syn case ignore -" FIXME: The problem with these two is that Vim doesn’t seem to like -" matching across line boundaries. -" -" syn match rstSections /^.*\n[=`:.'"~^_*+#-]\+$/ +syn match rstSections "^\%(\([=`:.'"~^_*+#-]\)\1\+\n\)\=.\+\n\([=`:.'"~^_*+#-]\)\2\+$" -" syn match rstTransition /^\s*[=`:.'"~^_*+#-]\{4,}\s*$/ +syn match rstTransition /^[=`:.'"~^_*+#-]\{4,}\s*$/ syn cluster rstCruft contains=rstEmphasis,rstStrongEmphasis, \ rstInterpretedText,rstInlineLiteral,rstSubstitutionReference, @@ -144,8 +141,8 @@ syn sync minlines=50 hi def link rstTodo Todo hi def link rstComment Comment -"hi def link rstSections Type -"hi def link rstTransition Type +hi def link rstSections Type +hi def link rstTransition Type hi def link rstLiteralBlock String hi def link rstQuotedLiteralBlock String hi def link rstDoctestBlock PreProc |