comparison runtime/syntax/omnimark.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 3fc0f57ecb91
children 46763b01cd9a
comparison
equal deleted inserted replaced
10047:a62862410ca1 10048:43efa4f5a8ea
1 " Vim syntax file 1 " Vim syntax file
2 " Language: Omnimark 2 " Language: Omnimark
3 " Maintainer: Paul Terray <mailto:terray@4dconcept.fr> 3 " Maintainer: Paul Terray <mailto:terray@4dconcept.fr>
4 " Last Change: 11 Oct 2000 4 " Last Change: 11 Oct 2000
5 5
6 " For version 5.x: Clear all syntax items 6 " quit when a syntax file was already loaded
7 " For version 6.x: Quit when a syntax file was already loaded 7 if exists("b:current_syntax")
8 if version < 600
9 syntax clear
10 elseif exists("b:current_syntax")
11 finish 8 finish
12 endif 9 endif
13 10
14 if version < 600 11 setlocal iskeyword=@,48-57,_,128-167,224-235,-
15 set iskeyword=@,48-57,_,128-167,224-235,-
16 else
17 setlocal iskeyword=@,48-57,_,128-167,224-235,-
18 endif
19 12
20 syn keyword omnimarkKeywords ACTIVATE AGAIN 13 syn keyword omnimarkKeywords ACTIVATE AGAIN
21 syn keyword omnimarkKeywords CATCH CLEAR CLOSE COPY COPY-CLEAR CROSS-TRANSLATE 14 syn keyword omnimarkKeywords CATCH CLEAR CLOSE COPY COPY-CLEAR CROSS-TRANSLATE
22 syn keyword omnimarkKeywords DEACTIVATE DECLARE DECREMENT DEFINE DISCARD DIVIDE DO DOCUMENT-END DOCUMENT-START DONE DTD-START 15 syn keyword omnimarkKeywords DEACTIVATE DECLARE DECREMENT DEFINE DISCARD DIVIDE DO DOCUMENT-END DOCUMENT-START DONE DTD-START
23 syn keyword omnimarkKeywords ELEMENT ELSE ESCAPE EXIT 16 syn keyword omnimarkKeywords ELEMENT ELSE ESCAPE EXIT
94 87
95 "syn sync maxlines=100 88 "syn sync maxlines=100
96 syn sync minlines=2000 89 syn sync minlines=2000
97 90
98 " Define the default highlighting. 91 " Define the default highlighting.
99 " For version 5.7 and earlier: only when not done already 92 " Only when an item doesn't have highlighting yet
100 " For version 5.8 and later: only when an item doesn't have highlighting yet 93 command -nargs=+ HiLink hi def link <args>
101 if version >= 508 || !exists("did_omnimark_syntax_inits")
102 if version < 508
103 let did_omnimark_syntax_inits = 1
104 command -nargs=+ HiLink hi link <args>
105 else
106 command -nargs=+ HiLink hi def link <args>
107 endif
108 94
109 HiLink omnimarkCommands Statement 95 HiLink omnimarkCommands Statement
110 HiLink omnimarkKeywords Identifier 96 HiLink omnimarkKeywords Identifier
111 HiLink omnimarkString String 97 HiLink omnimarkString String
112 HiLink omnimarkPatterns Macro 98 HiLink omnimarkPatterns Macro
113 " HiLink omnimarkNumber Number 99 " HiLink omnimarkNumber Number
114 HiLink omnimarkComment Comment 100 HiLink omnimarkComment Comment
115 HiLink omnimarkEscape Special 101 HiLink omnimarkEscape Special
116 102
117 delcommand HiLink 103 delcommand HiLink
118 endif
119 104
120 let b:current_syntax = "omnimark" 105 let b:current_syntax = "omnimark"
121 106
122 " vim: ts=8 107 " vim: ts=8
123 108