Mercurial > vim
comparison runtime/syntax/cmake.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 | aea5ebf352c4 |
children | 46763b01cd9a |
comparison
equal
deleted
inserted
replaced
10047:a62862410ca1 | 10048:43efa4f5a8ea |
---|---|
10 " | 10 " |
11 " Licence: The CMake license applies to this file. See | 11 " Licence: The CMake license applies to this file. See |
12 " http://www.cmake.org/HTML/Copyright.html | 12 " http://www.cmake.org/HTML/Copyright.html |
13 " This implies that distribution with Vim is allowed | 13 " This implies that distribution with Vim is allowed |
14 | 14 |
15 " For version 5.x: Clear all syntax items | 15 " quit when a syntax file was already loaded |
16 " For version 6.x: Quit when a syntax file was already loaded | 16 if exists("b:current_syntax") |
17 if version < 600 | |
18 syntax clear | |
19 elseif exists("b:current_syntax") | |
20 finish | 17 finish |
21 endif | 18 endif |
22 let s:keepcpo= &cpo | 19 let s:keepcpo= &cpo |
23 set cpo&vim | 20 set cpo&vim |
24 | 21 |
50 syn keyword cmakeTodo | 47 syn keyword cmakeTodo |
51 \ TODO FIXME XXX | 48 \ TODO FIXME XXX |
52 \ contained | 49 \ contained |
53 | 50 |
54 " Define the default highlighting. | 51 " Define the default highlighting. |
55 " For version 5.7 and earlier: only when not done already | 52 " Only when an item doesn't have highlighting yet |
56 " For version 5.8 and later: only when an item doesn't have highlighting yet | 53 command -nargs=+ HiLink hi def link <args> |
57 if version >= 508 || !exists("did_cmake_syntax_inits") | |
58 if version < 508 | |
59 let did_cmake_syntax_inits = 1 | |
60 command -nargs=+ HiLink hi link <args> | |
61 else | |
62 command -nargs=+ HiLink hi def link <args> | |
63 endif | |
64 | 54 |
65 HiLink cmakeStatement Statement | 55 HiLink cmakeStatement Statement |
66 HiLink cmakeComment Comment | 56 HiLink cmakeComment Comment |
67 HiLink cmakeString String | 57 HiLink cmakeString String |
68 HiLink cmakeVariableValue Type | 58 HiLink cmakeVariableValue Type |
69 HiLink cmakeRegistry Underlined | 59 HiLink cmakeRegistry Underlined |
70 HiLink cmakeArguments Identifier | 60 HiLink cmakeArguments Identifier |
71 HiLink cmakeArgument Constant | 61 HiLink cmakeArgument Constant |
72 HiLink cmakeEnvironment Special | 62 HiLink cmakeEnvironment Special |
73 HiLink cmakeOperators Operator | 63 HiLink cmakeOperators Operator |
74 HiLink cmakeMacro PreProc | 64 HiLink cmakeMacro PreProc |
75 HiLink cmakeError Error | 65 HiLink cmakeError Error |
76 HiLink cmakeTodo TODO | 66 HiLink cmakeTodo TODO |
77 HiLink cmakeEscaped Special | 67 HiLink cmakeEscaped Special |
78 | 68 |
79 delcommand HiLink | 69 delcommand HiLink |
80 endif | |
81 | 70 |
82 let b:current_syntax = "cmake" | 71 let b:current_syntax = "cmake" |
83 | 72 |
84 let &cpo = s:keepcpo | 73 let &cpo = s:keepcpo |
85 unlet s:keepcpo | 74 unlet s:keepcpo |