Mercurial > vim
comparison runtime/syntax/b.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 | 73fe8baea242 |
children | 46763b01cd9a |
comparison
equal
deleted
inserted
replaced
10047:a62862410ca1 | 10048:43efa4f5a8ea |
---|---|
3 " Maintainer: Mathieu Clabaut <mathieu.clabaut@gmail.com> | 3 " Maintainer: Mathieu Clabaut <mathieu.clabaut@gmail.com> |
4 " Contributor: Csaba Hoch | 4 " Contributor: Csaba Hoch |
5 " LastChange: 8 Dec 2007 | 5 " LastChange: 8 Dec 2007 |
6 | 6 |
7 | 7 |
8 " For version 5.x: Clear all syntax items | 8 " quit when a syntax file was already loaded |
9 " For version 6.x: Quit when a syntax file was already loaded | 9 if exists("b:current_syntax") |
10 if version < 600 | |
11 syntax clear | |
12 elseif exists("b:current_syntax") | |
13 finish | 10 finish |
14 endif | 11 endif |
15 | 12 |
16 | 13 |
17 " A bunch of useful B keywords | 14 " A bunch of useful B keywords |
67 syn region bPreProc start="^\s*#\s*\(pragma\>\|line\>\|warning\>\|warn\>\|error\>\)" skip="\\$" end="$" contains=ALLBUT,bPreCondit,bIncluded,bInclude,bDefine,bInParen | 64 syn region bPreProc start="^\s*#\s*\(pragma\>\|line\>\|warning\>\|warn\>\|error\>\)" skip="\\$" end="$" contains=ALLBUT,bPreCondit,bIncluded,bInclude,bDefine,bInParen |
68 | 65 |
69 syn sync ccomment bComment minlines=10 | 66 syn sync ccomment bComment minlines=10 |
70 | 67 |
71 " Define the default highlighting. | 68 " Define the default highlighting. |
72 " For version 5.7 and earlier: only when not done already | 69 " Only when an item doesn't have highlighting yet |
73 " For version 5.8 and later: only when an item doesn't have highlighting yet | |
74 | 70 |
75 if version >= 508 || !exists("did_b_syntax_inits") | 71 command -nargs=+ HiLink hi def link <args> |
76 if version < 508 | |
77 let did_b_syntax_inits = 1 | |
78 command -nargs=+ HiLink hi link <args> | |
79 else | |
80 command -nargs=+ HiLink hi def link <args> | |
81 endif | |
82 | 72 |
83 " The default methods for highlighting. Can be overridden later | 73 " The default methods for highlighting. Can be overridden later |
84 HiLink bLabel Label | 74 HiLink bLabel Label |
85 HiLink bUserLabel Label | 75 HiLink bUserLabel Label |
86 HiLink bConditional Conditional | 76 HiLink bConditional Conditional |
87 HiLink bRepeat Repeat | 77 HiLink bRepeat Repeat |
88 HiLink bLogic Special | 78 HiLink bLogic Special |
89 HiLink bCharacter Character | 79 HiLink bCharacter Character |
90 HiLink bSpecialCharacter bSpecial | 80 HiLink bSpecialCharacter bSpecial |
91 HiLink bNumber Number | 81 HiLink bNumber Number |
92 HiLink bFloat Float | 82 HiLink bFloat Float |
93 HiLink bOctalError bError | 83 HiLink bOctalError bError |
94 HiLink bParenError bError | 84 HiLink bParenError bError |
95 " HiLink bInParen bError | 85 " HiLink bInParen bError |
96 HiLink bCommentError bError | 86 HiLink bCommentError bError |
97 HiLink bBoolean Identifier | 87 HiLink bBoolean Identifier |
98 HiLink bConstant Identifier | 88 HiLink bConstant Identifier |
99 HiLink bGuard Identifier | 89 HiLink bGuard Identifier |
100 HiLink bOperator Operator | 90 HiLink bOperator Operator |
101 HiLink bKeywords Operator | 91 HiLink bKeywords Operator |
102 HiLink bOps Identifier | 92 HiLink bOps Identifier |
103 HiLink bStructure Structure | 93 HiLink bStructure Structure |
104 HiLink bStorageClass StorageClass | 94 HiLink bStorageClass StorageClass |
105 HiLink bInclude Include | 95 HiLink bInclude Include |
106 HiLink bPreProc PreProc | 96 HiLink bPreProc PreProc |
107 HiLink bDefine Macro | 97 HiLink bDefine Macro |
108 HiLink bIncluded bString | 98 HiLink bIncluded bString |
109 HiLink bError Error | 99 HiLink bError Error |
110 HiLink bStatement Statement | 100 HiLink bStatement Statement |
111 HiLink bPreCondit PreCondit | 101 HiLink bPreCondit PreCondit |
112 HiLink bType Type | 102 HiLink bType Type |
113 HiLink bCommentError bError | 103 HiLink bCommentError bError |
114 HiLink bCommentString bString | 104 HiLink bCommentString bString |
115 HiLink bComment2String bString | 105 HiLink bComment2String bString |
116 HiLink bCommentSkip bComment | 106 HiLink bCommentSkip bComment |
117 HiLink bString String | 107 HiLink bString String |
118 HiLink bComment Comment | 108 HiLink bComment Comment |
119 HiLink bSpecial SpecialChar | 109 HiLink bSpecial SpecialChar |
120 HiLink bTodo Todo | 110 HiLink bTodo Todo |
121 "hi link bIdentifier Identifier | 111 "hi link bIdentifier Identifier |
122 delcommand HiLink | 112 delcommand HiLink |
123 endif | |
124 | 113 |
125 let b:current_syntax = "b" | 114 let b:current_syntax = "b" |
126 | 115 |
127 " vim: ts=8 | 116 " vim: ts=8 |