comparison runtime/syntax/ptcap.vim @ 10051:46763b01cd9a

commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c Author: Bram Moolenaar <Bram@vim.org> Date: Wed Aug 31 22:22:10 2016 +0200 Updated runtime files. Remove HiLink commands.
author Christian Brabandt <cb@256bit.org>
date Wed, 31 Aug 2016 22:30:08 +0200
parents 43efa4f5a8ea
children 20cf2080f1ee
comparison
equal deleted inserted replaced
10050:b702edc4b2b8 10051:46763b01cd9a
68 syn region ptcapNames start="^\s*[^[:space:]:]" skip="[^\\]\(\\\\\)*\\:" end=":"me=e-1 contains=ptcapDelimiter,ptcapEscapedChar,ptcapLineCont,ptcapLeadBlank,ptcapComment keepend contained 68 syn region ptcapNames start="^\s*[^[:space:]:]" skip="[^\\]\(\\\\\)*\\:" end=":"me=e-1 contains=ptcapDelimiter,ptcapEscapedChar,ptcapLineCont,ptcapLeadBlank,ptcapComment keepend contained
69 syn region ptcapField start=":" skip="[^\\]\(\\\\\)*\\$" end="[^\\]\(\\\\\)*:"me=e-1 end="$" contains=ptcapDelimiter,ptcapString,ptcapNumber,ptcapNumberError,ptcapOperator,ptcapLineCont,ptcapSpecialCap,ptcapLeadBlank,ptcapComment keepend contained 69 syn region ptcapField start=":" skip="[^\\]\(\\\\\)*\\$" end="[^\\]\(\\\\\)*:"me=e-1 end="$" contains=ptcapDelimiter,ptcapString,ptcapNumber,ptcapNumberError,ptcapOperator,ptcapLineCont,ptcapSpecialCap,ptcapLeadBlank,ptcapComment keepend contained
70 syn region ptcapString matchgroup=ptcapOperator start="=" skip="[^\\]\(\\\\\)*\\:" matchgroup=ptcapDelimiter end=":"me=e-1 matchgroup=NONE end="[^\\]\(\\\\\)*[^\\]$" end="^$" contains=ptcapEscapedChar,ptcapLineCont keepend contained 70 syn region ptcapString matchgroup=ptcapOperator start="=" skip="[^\\]\(\\\\\)*\\:" matchgroup=ptcapDelimiter end=":"me=e-1 matchgroup=NONE end="[^\\]\(\\\\\)*[^\\]$" end="^$" contains=ptcapEscapedChar,ptcapLineCont keepend contained
71 syn region ptcapComment start="^\s*#" end="$" contains=ptcapLeadBlank 71 syn region ptcapComment start="^\s*#" end="$" contains=ptcapLeadBlank
72 72
73 command -nargs=+ HiLink hi def link <args>
74 73
75 HiLink ptcapComment Comment 74 hi def link ptcapComment Comment
76 HiLink ptcapDelimiter Delimiter 75 hi def link ptcapDelimiter Delimiter
77 " The highlighting of "ptcapEntry" should always be overridden by 76 " The highlighting of "ptcapEntry" should always be overridden by
78 " its contents, so I use Todo highlighting to indicate that there 77 " its contents, so I use Todo highlighting to indicate that there
79 " is work to be done with the syntax file if you can see it :-) 78 " is work to be done with the syntax file if you can see it :-)
80 HiLink ptcapEntry Todo 79 hi def link ptcapEntry Todo
81 HiLink ptcapError Error 80 hi def link ptcapError Error
82 HiLink ptcapEscapedChar SpecialChar 81 hi def link ptcapEscapedChar SpecialChar
83 HiLink ptcapField Type 82 hi def link ptcapField Type
84 HiLink ptcapLeadBlank NONE 83 hi def link ptcapLeadBlank NONE
85 HiLink ptcapLineCont Special 84 hi def link ptcapLineCont Special
86 HiLink ptcapNames Label 85 hi def link ptcapNames Label
87 HiLink ptcapNumber NONE 86 hi def link ptcapNumber NONE
88 HiLink ptcapNumberError Error 87 hi def link ptcapNumberError Error
89 HiLink ptcapOperator Operator 88 hi def link ptcapOperator Operator
90 HiLink ptcapSpecialCap Type 89 hi def link ptcapSpecialCap Type
91 HiLink ptcapString NONE 90 hi def link ptcapString NONE
92 91
93 delcommand HiLink
94 92
95 let b:current_syntax = "ptcap" 93 let b:current_syntax = "ptcap"
96 94
97 " vim: sts=4 sw=4 ts=8 95 " vim: sts=4 sw=4 ts=8