Mercurial > vim
comparison runtime/syntax/lifelines.vim @ 10048:43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 30 23:26:57 2016 +0200
Updated runtime files. Remove version checks for Vim older than 6.0.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 30 Aug 2016 23:30:09 +0200 |
parents | b17bbfa96fa0 |
children | 46763b01cd9a |
comparison
equal
deleted
inserted
replaced
10047:a62862410ca1 | 10048:43efa4f5a8ea |
---|---|
9 " let lifelines_deprecated = 1 | 9 " let lifelines_deprecated = 1 |
10 | 10 |
11 " For version 5.x: Clear all syntax items | 11 " For version 5.x: Clear all syntax items |
12 " For version 6.x: Quit when a syntax file was already loaded | 12 " For version 6.x: Quit when a syntax file was already loaded |
13 | 13 |
14 if version < 600 | 14 " quit when a syntax file was already loaded |
15 syntax clear | 15 if exists("b:current_syntax") |
16 elseif exists("b:current_syntax") | |
17 finish | 16 finish |
18 endif | 17 endif |
19 | 18 |
20 " A bunch of useful LifeLines keywords 3.0.62 | 19 " A bunch of useful LifeLines keywords 3.0.62 |
21 | 20 |
108 syn match lifelinesNumber "-\=\<\d\+\.\d*\>" | 107 syn match lifelinesNumber "-\=\<\d\+\.\d*\>" |
109 "floats, starting with a dot | 108 "floats, starting with a dot |
110 syn match lifelinesNumber "-\=\.\d\+\>" | 109 syn match lifelinesNumber "-\=\.\d\+\>" |
111 | 110 |
112 " folding using {} | 111 " folding using {} |
113 if version >= 600 | 112 syn region lifelinesFoldBlock start="{" end="}" transparent fold |
114 syn region lifelinesFoldBlock start="{" end="}" transparent fold | |
115 endif | |
116 | 113 |
117 "catch errors caused by wrong parenthesis | 114 "catch errors caused by wrong parenthesis |
118 "adapted from original c.vim written by Bram Moolenaar | 115 "adapted from original c.vim written by Bram Moolenaar |
119 | 116 |
120 syn cluster lifelinesParenGroup contains=lifelinesParenError | 117 syn cluster lifelinesParenGroup contains=lifelinesParenError |
121 syn region lifelinesParen transparent start='(' end=')' contains=ALLBUT,@lifelinesParenGroup | 118 syn region lifelinesParen transparent start='(' end=')' contains=ALLBUT,@lifelinesParenGroup |
122 syn match lifelinesParenError ")" | 119 syn match lifelinesParenError ")" |
123 syn match lifelinesErrInParen contained "[{}]" | 120 syn match lifelinesErrInParen contained "[{}]" |
124 | 121 |
125 " Define the default highlighting. | 122 " Define the default highlighting. |
126 " For version 5.7 and earlier: only when not done already | 123 " Only when an item doesn't have highlighting yet |
127 " For version 5.8 and later: only when an item doesn't have highlighting yet | |
128 | 124 |
129 if version >= 508 || !exists("did_lifelines_syn_inits") | 125 command -nargs=+ HiLink hi def link <args> |
130 if version < 508 | |
131 let did_lifelines_syn_inits = 1 | |
132 command -nargs=+ HiLink hi link <args> | |
133 else | |
134 command -nargs=+ HiLink hi def link <args> | |
135 endif | |
136 | 126 |
137 HiLink lifelinesConditional Conditional | 127 HiLink lifelinesConditional Conditional |
138 HiLink lifelinesArithm Operator | 128 HiLink lifelinesArithm Operator |
139 HiLink lifelinesLogical Conditional | 129 HiLink lifelinesLogical Conditional |
140 HiLink lifelinesInclude Include | 130 HiLink lifelinesInclude Include |
141 HiLink lifelinesComment Comment | 131 HiLink lifelinesComment Comment |
142 HiLink lifelinesStatement Statement | 132 HiLink lifelinesStatement Statement |
143 HiLink lifelinesUser Statement | 133 HiLink lifelinesUser Statement |
144 HiLink lifelinesFunct Statement | 134 HiLink lifelinesFunct Statement |
145 HiLink lifelinesTable Statement | 135 HiLink lifelinesTable Statement |
146 HiLink lifelinesGedcom Statement | 136 HiLink lifelinesGedcom Statement |
147 HiLink lifelinesList Statement | 137 HiLink lifelinesList Statement |
148 HiLink lifelinesRepeat Repeat | 138 HiLink lifelinesRepeat Repeat |
149 HiLink lifelinesFam Statement | 139 HiLink lifelinesFam Statement |
150 HiLink lifelinesIndi Statement | 140 HiLink lifelinesIndi Statement |
151 HiLink lifelinesProc Statement | 141 HiLink lifelinesProc Statement |
152 HiLink lifelinesDef Statement | 142 HiLink lifelinesDef Statement |
153 HiLink lifelinesString String | 143 HiLink lifelinesString String |
154 HiLink lifelinesSpecial Special | 144 HiLink lifelinesSpecial Special |
155 HiLink lifelinesNumber Number | 145 HiLink lifelinesNumber Number |
156 HiLink lifelinesParenError Error | 146 HiLink lifelinesParenError Error |
157 HiLink lifelinesErrInParen Error | 147 HiLink lifelinesErrInParen Error |
158 HiLink lifelinesError Error | 148 HiLink lifelinesError Error |
159 HiLink lifelinesTodo Todo | 149 HiLink lifelinesTodo Todo |
160 HiLink lifelinesDecl PreProc | 150 HiLink lifelinesDecl PreProc |
161 | 151 |
162 delcommand HiLink | 152 delcommand HiLink |
163 endif | |
164 | 153 |
165 let b:current_syntax = "lifelines" | 154 let b:current_syntax = "lifelines" |
166 | 155 |
167 " vim: ts=8 sw=4 | 156 " vim: ts=8 sw=4 |