comparison runtime/syntax/dracula.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 " Comment: Dracula is an industry-standard language created by CADENCE (a 6 " Comment: Dracula is an industry-standard language created by CADENCE (a
7 " company specializing in Electronics Design Automation), for 7 " company specializing in Electronics Design Automation), for
8 " the purposes of Design Rule Checking, Layout vs. Schematic 8 " the purposes of Design Rule Checking, Layout vs. Schematic
9 " verification, and Layout Parameter Extraction. 9 " verification, and Layout Parameter Extraction.
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 " Ignore case 16 " Ignore case
20 syn case ignore 17 syn case ignore
59 "Modify the following as needed. The trade-off is performance versus 56 "Modify the following as needed. The trade-off is performance versus
60 "functionality. 57 "functionality.
61 syn sync lines=50 58 syn sync lines=50
62 59
63 " Define the default highlighting. 60 " Define the default highlighting.
64 " For version 5.7 and earlier: only when not done already 61 " Only when an item doesn't have highlighting yet
65 " For version 5.8 and later: only when an item doesn't have highlighting yet 62 command -nargs=+ HiLink hi def link <args>
66 if version >= 508 || !exists("did_dracula_syn_inits")
67 if version < 508
68 let did_dracula_syn_inits = 1
69 command -nargs=+ HiLink hi link <args>
70 else
71 command -nargs=+ HiLink hi def link <args>
72 endif
73 63
74 HiLink draculaIdentifier Identifier 64 HiLink draculaIdentifier Identifier
75 HiLink draculaStatement Statement 65 HiLink draculaStatement Statement
76 HiLink draculaType Type 66 HiLink draculaType Type
77 HiLink draculaComment Comment 67 HiLink draculaComment Comment
78 HiLink draculaPreProc PreProc 68 HiLink draculaPreProc PreProc
79 69
80 delcommand HiLink 70 delcommand HiLink
81 endif
82 71
83 let b:current_syntax = "dracula" 72 let b:current_syntax = "dracula"
84 73
85 " vim: ts=8 74 " vim: ts=8