comparison runtime/syntax/registry.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 4abac79c0b7a
children 46763b01cd9a
comparison
equal deleted inserted replaced
10047:a62862410ca1 10048:43efa4f5a8ea
4 " URL: http://www.mggen.com/vim/syntax/registry.zip (doesn't work) 4 " URL: http://www.mggen.com/vim/syntax/registry.zip (doesn't work)
5 " Last change: 2014 Oct 31 5 " Last change: 2014 Oct 31
6 " Included patch from Alexander A. Ulitin 6 " Included patch from Alexander A. Ulitin
7 7
8 " clear any unwanted syntax defs 8 " clear any unwanted syntax defs
9 " For version 5.x: Clear all syntax items 9 " quit when a syntax file was already loaded
10 " For version 6.x: Quit when a syntax file was already loaded 10 if exists("b:current_syntax")
11 if version < 600
12 syntax clear
13 elseif exists("b:current_syntax")
14 finish 11 finish
15 endif 12 endif
16 13
17 " shut case off 14 " shut case off
18 syn case ignore 15 syn case ignore
83 syn match registryHex "hex\(([0-9]\{0,2})\)\=:\([0-9a-fA-F]\{2},\)*\([0-9a-fA-F]\{2}\|\\\)$" contains=registrySpecial 80 syn match registryHex "hex\(([0-9]\{0,2})\)\=:\([0-9a-fA-F]\{2},\)*\([0-9a-fA-F]\{2}\|\\\)$" contains=registrySpecial
84 syn match registryHex "^\s*\([0-9a-fA-F]\{2},\)\{0,999}\([0-9a-fA-F]\{2}\|\\\)$" contains=registrySpecial 81 syn match registryHex "^\s*\([0-9a-fA-F]\{2},\)\{0,999}\([0-9a-fA-F]\{2}\|\\\)$" contains=registrySpecial
85 " Dword (32 bits) 82 " Dword (32 bits)
86 syn match registryDword "dword:[0-9a-fA-F]\{8}$" contains=registrySpecial 83 syn match registryDword "dword:[0-9a-fA-F]\{8}$" contains=registrySpecial
87 84
88 if version >= 508 || !exists("did_registry_syntax_inits") 85 command -nargs=+ HiLink hi def link <args>
89 if version < 508
90 let did_registry_syntax_inits = 1
91 command -nargs=+ HiLink hi link <args>
92 else
93 command -nargs=+ HiLink hi def link <args>
94 endif
95 86
96 " The default methods for highlighting. Can be overridden later 87 " The default methods for highlighting. Can be overridden later
97 HiLink registryComment Comment 88 HiLink registryComment Comment
98 HiLink registryHead Constant 89 HiLink registryHead Constant
99 HiLink registryHKEY Constant 90 HiLink registryHKEY Constant
100 HiLink registryPath Special 91 HiLink registryPath Special
101 HiLink registryRemove PreProc 92 HiLink registryRemove PreProc
102 HiLink registryGUID Identifier 93 HiLink registryGUID Identifier
103 HiLink registrySpecial Special 94 HiLink registrySpecial Special
104 HiLink registrySubKey Type 95 HiLink registrySubKey Type
105 HiLink registryString String 96 HiLink registryString String
106 HiLink registryHex Number 97 HiLink registryHex Number
107 HiLink registryDword Number 98 HiLink registryDword Number
108 99
109 delcommand HiLink 100 delcommand HiLink
110 endif
111 101
112 102
113 let b:current_syntax = "registry" 103 let b:current_syntax = "registry"
114 104
115 " vim:ts=8 105 " vim:ts=8