summaryrefslogtreecommitdiff
path: root/runtime/syntax/rst.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-03-26 21:06:50 +0000
committerBram Moolenaar <Bram@vim.org>2006-03-26 21:06:50 +0000
commit899dddf88804af20d560b5277f1ca1bc4dd8e2b3 (patch)
tree17525001ae02c1e762f4dd6b383612bd16f7238d /runtime/syntax/rst.vim
parent5c6a2d53232f248c0ba0e4278a447042aa00371e (diff)
downloadvim-git-899dddf88804af20d560b5277f1ca1bc4dd8e2b3.tar.gz
updated for version 7.0b02v7.0b02
Diffstat (limited to 'runtime/syntax/rst.vim')
-rw-r--r--runtime/syntax/rst.vim8
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/syntax/rst.vim b/runtime/syntax/rst.vim
index 2336783f5..70ec47ed5 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 <nikolai+work.vim@bitwi.se>
-" Latest Revision: 2005-07-04
+" Latest Revision: 2006-03-26
if exists("b:current_syntax")
finish
@@ -32,11 +32,11 @@ syn region rstTable transparent start='^\n\s*+[-=+]\+' end='^$'
\ contains=rstTableLines,@rstCruft
syn match rstTableLines contained '^\s*[|+=-]\+$'
syn region rstSimpleTable transparent
- \ start='^\n\s*\%(=\+\s\+\)\%(=\+\s*\)\+$'
+ \ start='^\n\%(\s*\)\@>\%(\%(=\+\)\@>\%(\s\+\)\@>\)\%(\%(\%(=\+\)\@>\%(\s*\)\@>\)\+\)\@>$'
\ end='^$'
\ contains=rstSimpleTableLines,@rstCruft
syn match rstSimpleTableLines contained display
- \ '^\s*\%(=\+\s\+\)\%(=\+\s*\)\+$'
+ \ '^\%(\s*\)\@>\%(\%(=\+\)\@>\%(\s\+\)\@>\)\%(\%(\%(=\+\)\@>\%(\s*\)\@>\)\+\)\@>$'
syn region rstFootnote matchgroup=rstDirective
\ start='^\.\. \[\%([#*]\|[0-9]\+\|#[a-z0-9_.-]\+\)\]\s'
@@ -69,7 +69,7 @@ syn match rstHyperlinksLabel '\w\+__\=\>'
syn match rstInternalTarget '_`\S\%([^`]*\S\)\=`'
-syn match rstListItem '^:\%(\w\+\s*\)\+:'
+syn match rstListItem '^:\w\+\%(\s\+\w\+\)*:'
syn match rstListItem '^\s*[-*+]\s\+'
syn sync minlines=50