comparison runtime/syntax/st.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 b37888de599c
children 46763b01cd9a
comparison
equal deleted inserted replaced
10047:a62862410ca1 10048:43efa4f5a8ea
1 " Vim syntax file 1 " Vim syntax file
2 " Language: Smalltalk 2 " Language: Smalltalk
3 " Maintainer: Arndt Hesse <hesse@self.de> 3 " Maintainer: Arndt Hesse <hesse@self.de>
4 " Last Change: 2012 Feb 12 by Thilo Six 4 " Last Change: 2012 Feb 12 by Thilo Six
5 5
6 " For version 5.x: Clear all syntax items 6 " quit when a syntax file was already loaded
7 " For version 6.x: Quit when a syntax file was already loaded 7 if exists("b:current_syntax")
8 if version < 600
9 syntax clear
10 elseif exists("b:current_syntax")
11 finish 8 finish
12 endif 9 endif
13 10
14 let s:cpo_save = &cpo 11 let s:cpo_save = &cpo
15 set cpo&vim 12 set cpo&vim
75 72
76 " synchronization for syntax analysis 73 " synchronization for syntax analysis
77 syn sync minlines=50 74 syn sync minlines=50
78 75
79 " Define the default highlighting. 76 " Define the default highlighting.
80 " For version 5.7 and earlier: only when not done already 77 " Only when an item doesn't have highlighting yet
81 " For version 5.8 and later: only when an item doesn't have highlighting yet 78 command -nargs=+ HiLink hi def link <args>
82 if version >= 508 || !exists("did_st_syntax_inits")
83 if version < 508
84 let did_st_syntax_inits = 1
85 command -nargs=+ HiLink hi link <args>
86 else
87 command -nargs=+ HiLink hi def link <args>
88 endif
89 79
90 HiLink stKeyword Statement 80 HiLink stKeyword Statement
91 HiLink stMethod Statement 81 HiLink stMethod Statement
92 HiLink stComment Comment 82 HiLink stComment Comment
93 HiLink stCharacter Constant 83 HiLink stCharacter Constant
94 HiLink stString Constant 84 HiLink stString Constant
95 HiLink stSymbol Special 85 HiLink stSymbol Special
96 HiLink stNumber Type 86 HiLink stNumber Type
97 HiLink stFloat Type 87 HiLink stFloat Type
98 HiLink stError Error 88 HiLink stError Error
99 HiLink stLocalVariables Identifier 89 HiLink stLocalVariables Identifier
100 HiLink stBlockVariable Identifier 90 HiLink stBlockVariable Identifier
101 91
102 delcommand HiLink 92 delcommand HiLink
103 endif
104 93
105 let b:current_syntax = "st" 94 let b:current_syntax = "st"
106 95
107 let &cpo = s:cpo_save 96 let &cpo = s:cpo_save
108 unlet s:cpo_save 97 unlet s:cpo_save