Mercurial > vim
comparison runtime/syntax/msql.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 |
---|---|
6 " Last Change: 2001 May 10 | 6 " Last Change: 2001 May 10 |
7 " | 7 " |
8 " Options msql_sql_query = 1 for SQL syntax highligthing inside strings | 8 " Options msql_sql_query = 1 for SQL syntax highligthing inside strings |
9 " msql_minlines = x to sync at least x lines backwards | 9 " msql_minlines = x to sync at least x lines backwards |
10 | 10 |
11 " For version 5.x: Clear all syntax items | 11 " quit when a syntax file was already loaded |
12 " For version 6.x: Quit when a syntax file was already loaded | 12 if exists("b:current_syntax") |
13 if version < 600 | |
14 syntax clear | |
15 elseif exists("b:current_syntax") | |
16 finish | 13 finish |
17 endif | 14 endif |
18 | 15 |
19 if !exists("main_syntax") | 16 if !exists("main_syntax") |
20 let main_syntax = 'msql' | 17 let main_syntax = 'msql' |
21 endif | 18 endif |
22 | 19 |
23 if version < 600 | 20 runtime! syntax/html.vim |
24 so <sfile>:p:h/html.vim | 21 unlet b:current_syntax |
25 else | |
26 runtime! syntax/html.vim | |
27 unlet b:current_syntax | |
28 endif | |
29 | 22 |
30 syn cluster htmlPreproc add=msqlRegion | 23 syn cluster htmlPreproc add=msqlRegion |
31 | 24 |
32 syn case match | 25 syn case match |
33 | 26 |
55 else | 48 else |
56 syn sync minlines=100 | 49 syn sync minlines=100 |
57 endif | 50 endif |
58 | 51 |
59 " Define the default highlighting. | 52 " Define the default highlighting. |
60 " For version 5.7 and earlier: only when not done already | 53 " Only when an item doesn't have highlighting yet |
61 " For version 5.8 and later: only when an item doesn't have highlighting yet | 54 command -nargs=+ HiLink hi def link <args> |
62 if version >= 508 || !exists("did_msql_syn_inits") | |
63 if version < 508 | |
64 let did_msql_syn_inits = 1 | |
65 command -nargs=+ HiLink hi link <args> | |
66 else | |
67 command -nargs=+ HiLink hi def link <args> | |
68 endif | |
69 | 55 |
70 HiLink msqlComment Comment | 56 HiLink msqlComment Comment |
71 HiLink msqlString String | 57 HiLink msqlString String |
72 HiLink msqlNumber Number | 58 HiLink msqlNumber Number |
73 HiLink msqlFloat Float | 59 HiLink msqlFloat Float |
74 HiLink msqlIdentifier Identifier | 60 HiLink msqlIdentifier Identifier |
75 HiLink msqlGlobalIdentifier Identifier | 61 HiLink msqlGlobalIdentifier Identifier |
76 HiLink msqlIntVar Identifier | 62 HiLink msqlIntVar Identifier |
77 HiLink msqlEnvVar Identifier | 63 HiLink msqlEnvVar Identifier |
78 HiLink msqlFunctions Function | 64 HiLink msqlFunctions Function |
79 HiLink msqlRepeat Repeat | 65 HiLink msqlRepeat Repeat |
80 HiLink msqlConditional Conditional | 66 HiLink msqlConditional Conditional |
81 HiLink msqlStatement Statement | 67 HiLink msqlStatement Statement |
82 HiLink msqlType Type | 68 HiLink msqlType Type |
83 HiLink msqlInclude Include | 69 HiLink msqlInclude Include |
84 HiLink msqlDefine Define | 70 HiLink msqlDefine Define |
85 HiLink msqlSpecialChar SpecialChar | 71 HiLink msqlSpecialChar SpecialChar |
86 HiLink msqlParentError Error | 72 HiLink msqlParentError Error |
87 HiLink msqlTodo Todo | 73 HiLink msqlTodo Todo |
88 HiLink msqlOperator Operator | 74 HiLink msqlOperator Operator |
89 HiLink msqlRelation Operator | 75 HiLink msqlRelation Operator |
90 | 76 |
91 delcommand HiLink | 77 delcommand HiLink |
92 endif | |
93 | 78 |
94 let b:current_syntax = "msql" | 79 let b:current_syntax = "msql" |
95 | 80 |
96 if main_syntax == 'msql' | 81 if main_syntax == 'msql' |
97 unlet main_syntax | 82 unlet main_syntax |