summaryrefslogtreecommitdiff
path: root/runtime/syntax
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/syntax')
-rw-r--r--runtime/syntax/help.vim4
-rw-r--r--runtime/syntax/rcs.vim58
-rw-r--r--runtime/syntax/svn.vim36
3 files changed, 51 insertions, 47 deletions
diff --git a/runtime/syntax/help.vim b/runtime/syntax/help.vim
index 26f5deeb6..7ce8cde04 100644
--- a/runtime/syntax/help.vim
+++ b/runtime/syntax/help.vim
@@ -1,7 +1,7 @@
" Vim syntax file
" Language: Vim help file
" Maintainer: Bram Moolenaar (Bram@vim.org)
-" Last Change: 2005 Sep 01
+" Last Change: 2006 Mar 26
" Quit when a (custom) syntax file was already loaded
if exists("b:current_syntax")
@@ -106,7 +106,7 @@ syn match helpUnderlined "\t[* ]Underlined\t\+[a-z].*"
syn match helpError "\t[* ]Error\t\+[a-z].*"
syn match helpTodo "\t[* ]Todo\t\+[a-z].*"
-syn match helpURL `\v<(((https?|ftp|gopher)://|(mailto|file|news):)[^' <>"]+|(www|web|w3)[a-z0-9_-]*\.[a-z0-9._-]+\.[^' <>"]+)[a-z0-9/]`
+syn match helpURL `\v<(((https?|ftp|gopher)://|(mailto|file|news):)[^' <>"]+|(www|web|w3)[a-z0-9_-]*\.[a-z0-9._-]+\.[^' <>"]+)[a-zA-Z0-9/]`
" Additionally load a language-specific syntax file "help_ab.vim".
let s:i = match(expand("%"), '\.\a\ax$')
diff --git a/runtime/syntax/rcs.vim b/runtime/syntax/rcs.vim
index f4a90c62c..0b56011be 100644
--- a/runtime/syntax/rcs.vim
+++ b/runtime/syntax/rcs.vim
@@ -1,13 +1,13 @@
" Vim syntax file
-" Language: RCS file
-" Maintainer: Dmitry Vasiliev <dima@hlabs.spb.ru>
-" URL: http://www.hlabs.spb.ru/vim/rcs.vim
-" Last Change: $Date$
-" Filenames: *,v
-" $Revision$
-"
+" Language: RCS file
+" Maintainer: Dmitry Vasiliev <dima at hlabs dot spb dot ru>
+" URL: http://www.hlabs.spb.ru/vim/rcs.vim
+" Revision: $Id$
+" Filenames: *,v
+" Version: 1.11
+
" Options:
-" rcs_folding = 1 For folding strings
+" rcs_folding = 1 For folding strings
" For version 5.x: Clear all syntax items.
" For version 6.x: Quit when a syntax file was already loaded.
@@ -18,28 +18,28 @@ elseif exists("b:current_syntax")
endif
" RCS file must end with a newline.
-syn match rcsEOFError ".\%$" containedin=ALL
+syn match rcsEOFError ".\%$" containedin=ALL
" Keywords.
-syn keyword rcsKeyword head branch access symbols locks strict
-syn keyword rcsKeyword comment expand date author state branches
-syn keyword rcsKeyword next desc log
-syn keyword rcsKeyword text nextgroup=rcsTextStr skipwhite skipempty
+syn keyword rcsKeyword head branch access symbols locks strict
+syn keyword rcsKeyword comment expand date author state branches
+syn keyword rcsKeyword next desc log
+syn keyword rcsKeyword text nextgroup=rcsTextStr skipwhite skipempty
" Revision numbers and dates.
-syn match rcsNumber "\<[0-9.]\+\>" display
+syn match rcsNumber "\<[0-9.]\+\>" display
" Strings.
if exists("rcs_folding") && has("folding")
" Folded strings.
- syn region rcsString matchgroup=rcsString start="@" end="@" skip="@@" fold contains=rcsSpecial
- syn region rcsTextStr matchgroup=rcsTextStr start="@" end="@" skip="@@" fold contained contains=rcsSpecial,rcsDiffLines
+ syn region rcsString matchgroup=rcsString start="@" end="@" skip="@@" fold contains=rcsSpecial
+ syn region rcsTextStr matchgroup=rcsTextStr start="@" end="@" skip="@@" fold contained contains=rcsSpecial,rcsDiffLines
else
- syn region rcsString matchgroup=rcsString start="@" end="@" skip="@@" contains=rcsSpecial
- syn region rcsTextStr matchgroup=rcsTextStr start="@" end="@" skip="@@" contained contains=rcsSpecial,rcsDiffLines
+ syn region rcsString matchgroup=rcsString start="@" end="@" skip="@@" contains=rcsSpecial
+ syn region rcsTextStr matchgroup=rcsTextStr start="@" end="@" skip="@@" contained contains=rcsSpecial,rcsDiffLines
endif
-syn match rcsSpecial "@@" contained
-syn match rcsDiffLines "[da]\d\+ \d\+$" contained
+syn match rcsSpecial "@@" contained
+syn match rcsDiffLines "[da]\d\+ \d\+$" contained
" Synchronization.
syn sync clear
@@ -47,8 +47,8 @@ if exists("rcs_folding") && has("folding")
syn sync fromstart
else
" We have incorrect folding if following sync patterns is turned on.
- syn sync match rcsSync grouphere rcsString "[0-9.]\+\(\s\|\n\)\+log\(\s\|\n\)\+@"me=e-1
- syn sync match rcsSync grouphere rcsTextStr "@\(\s\|\n\)\+text\(\s\|\n\)\+@"me=e-1
+ syn sync match rcsSync grouphere rcsString "[0-9.]\+\(\s\|\n\)\+log\(\s\|\n\)\+@"me=e-1
+ syn sync match rcsSync grouphere rcsTextStr "@\(\s\|\n\)\+text\(\s\|\n\)\+@"me=e-1
endif
" Define the default highlighting.
@@ -62,13 +62,13 @@ if version >= 508 || !exists("did_rcs_syn_inits")
command -nargs=+ HiLink hi def link <args>
endif
- HiLink rcsKeyword Keyword
- HiLink rcsNumber Identifier
- HiLink rcsString String
- HiLink rcsTextStr String
- HiLink rcsSpecial Special
- HiLink rcsDiffLines Special
- HiLink rcsEOFError Error
+ HiLink rcsKeyword Keyword
+ HiLink rcsNumber Identifier
+ HiLink rcsString String
+ HiLink rcsTextStr String
+ HiLink rcsSpecial Special
+ HiLink rcsDiffLines Special
+ HiLink rcsEOFError Error
delcommand HiLink
endif
diff --git a/runtime/syntax/svn.vim b/runtime/syntax/svn.vim
index 5ec3236c5..d691ba15c 100644
--- a/runtime/syntax/svn.vim
+++ b/runtime/syntax/svn.vim
@@ -1,9 +1,13 @@
" Vim syntax file
-" Language: Subversion (svn) commit file
-" Maintainer: Dmitry Vasiliev <dima@hlabs.spb.ru>
-" URL: http://www.hlabs.spb.ru/vim/svn.vim
-" Last Change: $Date$
-" $Revision$
+" Language: Subversion (svn) commit file
+" Maintainer: Dmitry Vasiliev <dima at hlabs dot spb dot ru>
+" URL: http://www.hlabs.spb.ru/vim/svn.vim
+" Revision: $Id$
+" Filenames: svn-commit*.tmp
+" Version: 1.5
+
+" Contributors:
+" Stefano Zacchiroli
" For version 5.x: Clear all syntax items.
" For version 6.x: Quit when a syntax file was already loaded.
@@ -13,15 +17,15 @@ elseif exists("b:current_syntax")
finish
endif
-syn region svnRegion start="--This line, and those below, will be ignored--" end="\%$" contains=ALL
-syn match svnRemoved "^D .*$" contained
-syn match svnAdded "^A[ M] .*$" contained
-syn match svnModified "^M[ M] .*$" contained
-syn match svnProperty "^_M .*$" contained
+syn region svnRegion start="^--.*--$" end="\%$" contains=ALL
+syn match svnRemoved "^D .*$" contained
+syn match svnAdded "^A[ M] .*$" contained
+syn match svnModified "^M[ M] .*$" contained
+syn match svnProperty "^_M .*$" contained
" Synchronization.
syn sync clear
-syn sync match svnSync grouphere svnRegion "--This line, and those below, will be ignored--"me=s-1
+syn sync match svnSync grouphere svnRegion "^--.*--$"me=s-1
" Define the default highlighting.
" For version 5.7 and earlier: only when not done already.
@@ -34,11 +38,11 @@ if version >= 508 || !exists("did_svn_syn_inits")
command -nargs=+ HiLink hi def link <args>
endif
- HiLink svnRegion Comment
- HiLink svnRemoved Constant
- HiLink svnAdded Identifier
- HiLink svnModified Special
- HiLink svnProperty Special
+ HiLink svnRegion Comment
+ HiLink svnRemoved Constant
+ HiLink svnAdded Identifier
+ HiLink svnModified Special
+ HiLink svnProperty Special
delcommand HiLink
endif