Mercurial > vim
comparison runtime/syntax/wsml.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 | 8cd729851562 |
children | 46763b01cd9a |
comparison
equal
deleted
inserted
replaced
10047:a62862410ca1 | 10048:43efa4f5a8ea |
---|---|
2 " Language: WSML | 2 " Language: WSML |
3 " Maintainer: Thomas Haselwanter <thomas.haselwanter@deri.org> | 3 " Maintainer: Thomas Haselwanter <thomas.haselwanter@deri.org> |
4 " URL: none | 4 " URL: none |
5 " Last Change: 2006 Apr 30 | 5 " Last Change: 2006 Apr 30 |
6 | 6 |
7 " Quit when a syntax file was already loaded | 7 " quit when a syntax file was already loaded |
8 if version < 600 | 8 if exists("b:current_syntax") |
9 syntax clear | |
10 elseif exists("b:current_syntax") | |
11 finish | 9 finish |
12 endif | 10 endif |
13 | 11 |
14 " WSML | 12 " WSML |
15 syn keyword wsmlHeader wsmlVariant | 13 syn keyword wsmlHeader wsmlVariant |
76 syn match wsmlSpecial "\\u\d\{4\}" | 74 syn match wsmlSpecial "\\u\d\{4\}" |
77 | 75 |
78 syn cluster wsmlTop add=wsmlString,wsmlCharacter,wsmlNumber,wsmlSpecial,wsmlStringError | 76 syn cluster wsmlTop add=wsmlString,wsmlCharacter,wsmlNumber,wsmlSpecial,wsmlStringError |
79 | 77 |
80 " Define the default highlighting. | 78 " Define the default highlighting. |
81 " " For version 5.7 and earlier: only when not done already | 79 " Only when an item doesn't have highlighting yet |
82 " " For version 5.8 and later: only when an item doesn't have highlighting yet | 80 command -nargs=+ HiLink hi def link <args> |
83 if version >= 508 || !exists("did_wsml_syn_inits") | 81 HiLink wsmlHeader TypeDef |
84 if version < 508 | 82 HiLink wsmlNamespace TypeDef |
85 let did_wsml_syn_inits = 1 | 83 HiLink wsmlOntology Statement |
86 command -nargs=+ HiLink hi link <args> | 84 HiLink wsmlAxiom TypeDef |
87 else | 85 HiLink wsmlService TypeDef |
88 command -nargs=+ HiLink hi def link <args> | 86 HiLink wsmlNFP TypeDef |
89 endif | 87 HiLink wsmlTopLevel TypeDef |
90 HiLink wsmlHeader TypeDef | 88 HiLink wsmlMediation TypeDef |
91 HiLink wsmlNamespace TypeDef | 89 HiLink wsmlBehavioral TypeDef |
92 HiLink wsmlOntology Statement | 90 HiLink wsmlChoreographyPri TypeDef |
93 HiLink wsmlAxiom TypeDef | 91 HiLink wsmlChoreographySec Operator |
94 HiLink wsmlService TypeDef | 92 HiLink wsmlChoreographyTer Special |
95 HiLink wsmlNFP TypeDef | 93 HiLink wsmlString String |
96 HiLink wsmlTopLevel TypeDef | 94 HiLink wsmlIdentifier Normal |
97 HiLink wsmlMediation TypeDef | 95 HiLink wsmlSqName Normal |
98 HiLink wsmlBehavioral TypeDef | 96 HiLink wsmlVariable Define |
99 HiLink wsmlChoreographyPri TypeDef | 97 HiLink wsmlKeywordsInsideLEs Operator |
100 HiLink wsmlChoreographySec Operator | 98 HiLink wsmlOperator Operator |
101 HiLink wsmlChoreographyTer Special | 99 HiLink wsmlBrace Operator |
102 HiLink wsmlString String | 100 HiLink wsmlCharacter Character |
103 HiLink wsmlIdentifier Normal | 101 HiLink wsmlNumber Number |
104 HiLink wsmlSqName Normal | 102 HiLink wsmlDataTypes Special |
105 HiLink wsmlVariable Define | 103 HiLink wsmlComment Comment |
106 HiLink wsmlKeywordsInsideLEs Operator | 104 HiLink wsmlDocComment Comment |
107 HiLink wsmlOperator Operator | 105 HiLink wsmlLineComment Comment |
108 HiLink wsmlBrace Operator | 106 HiLink wsmlTodo Todo |
109 HiLink wsmlCharacter Character | 107 HiLink wsmlFixMe Error |
110 HiLink wsmlNumber Number | 108 HiLink wsmlCommentTitle SpecialComment |
111 HiLink wsmlDataTypes Special | 109 HiLink wsmlCommentStar wsmlComment |
112 HiLink wsmlComment Comment | |
113 HiLink wsmlDocComment Comment | |
114 HiLink wsmlLineComment Comment | |
115 HiLink wsmlTodo Todo | |
116 HiLink wsmlFixMe Error | |
117 HiLink wsmlCommentTitle SpecialComment | |
118 HiLink wsmlCommentStar wsmlComment | |
119 endif | |
120 | 110 |
121 delcommand HiLink | 111 delcommand HiLink |
122 | 112 |
123 let b:current_syntax = "wsml" | 113 let b:current_syntax = "wsml" |
124 let b:spell_options="contained" | 114 let b:spell_options="contained" |