diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-04-05 20:41:53 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-04-05 20:41:53 +0000 |
commit | 910f66f90c928da8b607ccfdc12fc33d9cb8d4a9 (patch) | |
tree | 152a03d1d7ea3e8d433addba4f463d8a7a68a5fd /runtime/syntax/rhelp.vim | |
parent | e2f98b95c8071f772695602cd4f714dc588eb8e7 (diff) | |
download | vim-910f66f90c928da8b607ccfdc12fc33d9cb8d4a9.zip |
updated for version 7.0c10
Diffstat (limited to 'runtime/syntax/rhelp.vim')
-rw-r--r-- | runtime/syntax/rhelp.vim | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/runtime/syntax/rhelp.vim b/runtime/syntax/rhelp.vim index af8626450..163399808 100644 --- a/runtime/syntax/rhelp.vim +++ b/runtime/syntax/rhelp.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: R Help File " Maintainer: Johannes Ranke <jranke@uni-bremen.de> -" Last Change: 2006 Mär 06 +" Last Change: 2006 Apr 05 " Version: 0.5 " Remarks: - Now includes R syntax highlighting in the appropriate " sections if an r.vim file is in the same directory or in the @@ -15,7 +15,7 @@ " Version Clears: {{{1 " For version 5.x: Clear all syntax items -" For version 6.x: Quit when a syntax file was already loaded +" For version 6.x and 7.x: Quit when a syntax file was already loaded if version < 600 syntax clear elseif exists("b:current_syntax") @@ -36,7 +36,7 @@ let s:syntaxdir = expand("<sfile>:p:h") "look in the directory of this file let s:rsyntax = s:syntaxdir . "/r.vim" if filereadable(s:rsyntax) syn include @R <sfile>:p:h/r.vim -elseif filereadable('/usr/share/vim/vim64/syntax/r.vim') "and debian location +elseif filereadable('/usr/share/vim/vimcurrent/syntax/r.vim') "and debian location syn include @R /usr/share/vim/vimcurrent/syntax/r.vim else syn match rhelpRComment /\#.*/ "if no r.vim is found, do comments @@ -46,12 +46,12 @@ syn region rhelpRcode matchgroup=Delimiter start="\\examples{" matchgroup=Delimi syn region rhelpRcode matchgroup=Delimiter start="\\usage{" matchgroup=Delimiter transparent end=/}/ contains=@R,rhelpIdentifier syn region rhelpRcode matchgroup=Delimiter start="\\synopsis{" matchgroup=Delimiter transparent end=/}/ contains=@R syn region rhelpRcode matchgroup=Delimiter start="\\special{" matchgroup=Delimiter transparent end=/}/ contains=@R contained -syn region rhelpRcode matchgroup=Delimiter start="\\code{" matchgroup=Delimiter transparent end=/}/ contains=@R contained +syn region rhelpRcode matchgroup=Delimiter start="\\code{" matchgroup=Delimiter transparent end=/}/ contains=@R,rhelpLink contained " Strings {{{1 syn region rhelpString start=/"/ end=/"/ -" Special TeX characters ( \$ \& \% \# \{ \} \_) {{{1 +" Special characters ( \$ \& \% \# \{ \} \_) {{{1 syn match rhelpSpecialChar "\\[$&%#{}_]" " Special Delimiters {{{1 |