Mercurial > vim
comparison runtime/syntax/mel.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 |
---|---|
2 " Language: MEL (Maya Extension Language) | 2 " Language: MEL (Maya Extension Language) |
3 " Maintainer: Robert Minsk <egbert@centropolisfx.com> | 3 " Maintainer: Robert Minsk <egbert@centropolisfx.com> |
4 " Last Change: May 27 1999 | 4 " Last Change: May 27 1999 |
5 " Based on: Bram Moolenaar <Bram@vim.org> C syntax file | 5 " Based on: Bram Moolenaar <Bram@vim.org> C syntax file |
6 | 6 |
7 " For version 5.x: Clear all syntax items | 7 " quit when a syntax file was already loaded |
8 " For version 6.x: Quit when a syntax file was already loaded | 8 if exists("b:current_syntax") |
9 if version < 600 | |
10 syntax clear | |
11 elseif exists("b:current_syntax") | |
12 finish | 9 finish |
13 endif | 10 endif |
14 | 11 |
15 " when wanted, highlight trailing white space and spaces before tabs | 12 " when wanted, highlight trailing white space and spaces before tabs |
16 if exists("mel_space_errors") | 13 if exists("mel_space_errors") |
75 let mel_minlines=15 | 72 let mel_minlines=15 |
76 endif | 73 endif |
77 exec "sy sync ccomment melComment minlines=" . mel_minlines | 74 exec "sy sync ccomment melComment minlines=" . mel_minlines |
78 | 75 |
79 " Define the default highlighting. | 76 " Define the default highlighting. |
80 " For version 5.7 and earlier: only when not done already | 77 " Only when an item doesn't have highlighting yet |
81 " For version 5.8 and later: only when an item doesn't have highlighting yet | 78 command -nargs=+ HiLink hi def link <args> |
82 if version >= 508 || !exists("did_mel_syntax_inits") | |
83 if version < 508 | |
84 let did_mel_syntax_inits = 1 | |
85 command -nargs=+ HiLink hi link <args> | |
86 else | |
87 command -nargs=+ HiLink hi def link <args> | |
88 endif | |
89 | 79 |
90 HiLink melBoolean Boolean | 80 HiLink melBoolean Boolean |
91 HiLink melFunction Function | 81 HiLink melFunction Function |
92 HiLink melIdentifier Identifier | 82 HiLink melIdentifier Identifier |
93 HiLink melStatement Statement | 83 HiLink melStatement Statement |
94 HiLink melConditional Conditional | 84 HiLink melConditional Conditional |
95 HiLink melRepeat Repeat | 85 HiLink melRepeat Repeat |
96 HiLink melLabel Label | 86 HiLink melLabel Label |
97 HiLink melOperator Operator | 87 HiLink melOperator Operator |
98 HiLink melKeyword Keyword | 88 HiLink melKeyword Keyword |
99 HiLink melException Exception | 89 HiLink melException Exception |
100 HiLink melInclude Include | 90 HiLink melInclude Include |
101 HiLink melType Type | 91 HiLink melType Type |
102 HiLink melStorageClass StorageClass | 92 HiLink melStorageClass StorageClass |
103 HiLink melDebug Debug | 93 HiLink melDebug Debug |
104 HiLink melTodo Todo | 94 HiLink melTodo Todo |
105 HiLink melCharSpecial SpecialChar | 95 HiLink melCharSpecial SpecialChar |
106 HiLink melString String | 96 HiLink melString String |
107 HiLink melInteger Number | 97 HiLink melInteger Number |
108 HiLink melFloat Float | 98 HiLink melFloat Float |
109 HiLink melMatrixVector Float | 99 HiLink melMatrixVector Float |
110 HiLink melComment Comment | 100 HiLink melComment Comment |
111 HiLink melError Error | 101 HiLink melError Error |
112 HiLink melSpaceError melError | 102 HiLink melSpaceError melError |
113 HiLink melCharError melError | 103 HiLink melCharError melError |
114 HiLink melParenError melError | 104 HiLink melParenError melError |
115 HiLink melInParen melError | 105 HiLink melInParen melError |
116 HiLink melCommentError melError | 106 HiLink melCommentError melError |
117 | 107 |
118 delcommand HiLink | 108 delcommand HiLink |
119 endif | |
120 | 109 |
121 let b:current_syntax = "mel" | 110 let b:current_syntax = "mel" |