comparison runtime/syntax/make.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 3af822eb4da5
children 46763b01cd9a
comparison
equal deleted inserted replaced
10047:a62862410ca1 10048:43efa4f5a8ea
2 " Language: Makefile 2 " Language: Makefile
3 " Maintainer: Claudio Fleiner <claudio@fleiner.com> 3 " Maintainer: Claudio Fleiner <claudio@fleiner.com>
4 " URL: http://www.fleiner.com/vim/syntax/make.vim 4 " URL: http://www.fleiner.com/vim/syntax/make.vim
5 " Last Change: 2015 Feb 28 5 " Last Change: 2015 Feb 28
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 let s:cpo_save = &cpo 12 let s:cpo_save = &cpo
16 set cpo&vim 13 set cpo&vim
99 syn sync match makeCommandSync groupthere NONE "^[^\t#]" 96 syn sync match makeCommandSync groupthere NONE "^[^\t#]"
100 syn sync match makeCommandSync groupthere makeCommands "^[A-Za-z0-9_./$()%-][A-Za-z0-9_./\t $()%-]*:\{1,2}[^:=]" 97 syn sync match makeCommandSync groupthere makeCommands "^[A-Za-z0-9_./$()%-][A-Za-z0-9_./\t $()%-]*:\{1,2}[^:=]"
101 syn sync match makeCommandSync groupthere makeCommands "^[A-Za-z0-9_./$()%-][A-Za-z0-9_./\t $()%-]*:\{1,2}\s*$" 98 syn sync match makeCommandSync groupthere makeCommands "^[A-Za-z0-9_./$()%-][A-Za-z0-9_./\t $()%-]*:\{1,2}\s*$"
102 99
103 " Define the default highlighting. 100 " Define the default highlighting.
104 " For version 5.7 and earlier: only when not done already 101 " Only when an item doesn't have highlighting yet
105 " For version 5.8 and later: only when an item doesn't have highlighting yet 102 command -nargs=+ HiLink hi def link <args>
106 if version >= 508 || !exists("did_make_syn_inits")
107 if version < 508
108 let did_make_syn_inits = 1
109 command -nargs=+ HiLink hi link <args>
110 else
111 command -nargs=+ HiLink hi def link <args>
112 endif
113 103
114 HiLink makeNextLine makeSpecial 104 HiLink makeNextLine makeSpecial
115 HiLink makeCmdNextLine makeSpecial 105 HiLink makeCmdNextLine makeSpecial
116 HiLink makeSpecTarget Statement 106 HiLink makeSpecTarget Statement
117 if !exists("make_no_commands") 107 if !exists("make_no_commands")
118 HiLink makeCommands Number 108 HiLink makeCommands Number
119 endif
120 HiLink makeImplicit Function
121 HiLink makeTarget Function
122 HiLink makeInclude Include
123 HiLink makePreCondit PreCondit
124 HiLink makeStatement Statement
125 HiLink makeIdent Identifier
126 HiLink makeSpecial Special
127 HiLink makeComment Comment
128 HiLink makeDString String
129 HiLink makeSString String
130 HiLink makeBString Function
131 HiLink makeError Error
132 HiLink makeTodo Todo
133 HiLink makeDefine Define
134 HiLink makeCommandError Error
135 HiLink makeConfig PreCondit
136 delcommand HiLink
137 endif 109 endif
110 HiLink makeImplicit Function
111 HiLink makeTarget Function
112 HiLink makeInclude Include
113 HiLink makePreCondit PreCondit
114 HiLink makeStatement Statement
115 HiLink makeIdent Identifier
116 HiLink makeSpecial Special
117 HiLink makeComment Comment
118 HiLink makeDString String
119 HiLink makeSString String
120 HiLink makeBString Function
121 HiLink makeError Error
122 HiLink makeTodo Todo
123 HiLink makeDefine Define
124 HiLink makeCommandError Error
125 HiLink makeConfig PreCondit
126 delcommand HiLink
138 127
139 let b:current_syntax = "make" 128 let b:current_syntax = "make"
140 129
141 let &cpo = s:cpo_save 130 let &cpo = s:cpo_save
142 unlet s:cpo_save 131 unlet s:cpo_save