Mercurial > vim
comparison runtime/syntax/help.vim @ 3526:dd6c2497c997
Fix more 'cpo' issues in runtime files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 18 May 2012 21:49:28 +0200 |
parents | 3482d151136b |
children | 9910cbff5f16 |
comparison
equal
deleted
inserted
replaced
3525:b1f40dd6f844 | 3526:dd6c2497c997 |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: Vim help file | 2 " Language: Vim help file |
3 " Maintainer: Bram Moolenaar (Bram@vim.org) | 3 " Maintainer: Bram Moolenaar (Bram@vim.org) |
4 " Last Change: 2012 Apr 25 | 4 " Last Change: 2012 May 18 |
5 | 5 |
6 " Quit when a (custom) syntax file was already loaded | 6 " Quit when a (custom) syntax file was already loaded |
7 if exists("b:current_syntax") | 7 if exists("b:current_syntax") |
8 finish | 8 finish |
9 endif | 9 endif |
23 syn match helpHyperTextJump "\\\@<!|[#-)!+-~]\+|" contains=helpBar | 23 syn match helpHyperTextJump "\\\@<!|[#-)!+-~]\+|" contains=helpBar |
24 syn match helpHyperTextEntry "\*[#-)!+-~]\+\*\s"he=e-1 contains=helpStar | 24 syn match helpHyperTextEntry "\*[#-)!+-~]\+\*\s"he=e-1 contains=helpStar |
25 syn match helpHyperTextEntry "\*[#-)!+-~]\+\*$" contains=helpStar | 25 syn match helpHyperTextEntry "\*[#-)!+-~]\+\*$" contains=helpStar |
26 endif | 26 endif |
27 if has("conceal") | 27 if has("conceal") |
28 syn match helpBar contained "|" conceal | 28 syn match helpBar contained "[|`]" conceal |
29 syn match helpStar contained "\*" conceal | 29 syn match helpStar contained "\*" conceal |
30 else | 30 else |
31 syn match helpBar contained "|" | 31 syn match helpBar contained "[|`]" |
32 syn match helpStar contained "\*" | 32 syn match helpStar contained "\*" |
33 endif | 33 endif |
34 syn match helpNormal "|.*====*|" | 34 syn match helpNormal "|.*====*|" |
35 syn match helpNormal "|||" | 35 syn match helpNormal "|||" |
36 syn match helpNormal ":|vim:|" " for :help modeline | 36 syn match helpNormal ":|vim:|" " for :help modeline |
37 syn match helpVim "Vim version [0-9.a-z]\+" | 37 syn match helpVim "Vim version [0-9.a-z]\+" |
38 syn match helpVim "VIM REFERENCE.*" | 38 syn match helpVim "VIM REFERENCE.*" |
39 syn match helpOption "'[a-z]\{2,\}'" | 39 syn match helpOption "'[a-z]\{2,\}'" |
40 syn match helpOption "'t_..'" | 40 syn match helpOption "'t_..'" |
41 syn match helpCommand "`[^` ]*`"hs=s+1,he=e-1 | 41 syn match helpCommand "`[^` ]*`"hs=s+1,he=e-1 contains=helpBar |
42 syn match helpHeader "\s*\zs.\{-}\ze\s\=\~$" nextgroup=helpIgnore | 42 syn match helpHeader "\s*\zs.\{-}\ze\s\=\~$" nextgroup=helpIgnore |
43 syn match helpGraphic ".* \ze`$" nextgroup=helpIgnore | 43 syn match helpGraphic ".* \ze`$" nextgroup=helpIgnore |
44 if has("conceal") | 44 if has("conceal") |
45 syn match helpIgnore "." contained conceal | 45 syn match helpIgnore "." contained conceal |
46 else | 46 else |