comparison runtime/syntax/ist.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 ba708ee8d69d
children 46763b01cd9a
comparison
equal deleted inserted replaced
10047:a62862410ca1 10048:43efa4f5a8ea
1 " Vim syntax file 1 " Vim syntax file
2 " Language: Makeindex style file, *.ist 2 " Language: Makeindex style file, *.ist
3 " Maintainer: Peter Meszaros <pmeszaros@effice.hu> 3 " Maintainer: Peter Meszaros <pmeszaros@effice.hu>
4 " Last Change: 2012 Jan 08 by Thilo Six 4 " Last Change: 2012 Jan 08 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
16 13
17 if version >= 600 14 setlocal iskeyword=$,@,48-57,_
18 setlocal iskeyword=$,@,48-57,_
19 else
20 set iskeyword=$,@,48-57,_
21 endif
22 15
23 syn case ignore 16 syn case ignore
24 syn keyword IstInpSpec actual arg_close arg_open encap escape 17 syn keyword IstInpSpec actual arg_close arg_open encap escape
25 syn keyword IstInpSpec keyword level quote range_close range_open 18 syn keyword IstInpSpec keyword level quote range_close range_open
26 syn keyword IstInpSpec page_compositor 19 syn keyword IstInpSpec page_compositor
43 syn match IstComment "^[\t ]*%.*$" contains=IstTodo 36 syn match IstComment "^[\t ]*%.*$" contains=IstTodo
44 syn match IstSpecial "\\\\\|{\|}\|#\|\\n" contained 37 syn match IstSpecial "\\\\\|{\|}\|#\|\\n" contained
45 syn match IstTodo "DEBUG\|TODO" contained 38 syn match IstTodo "DEBUG\|TODO" contained
46 39
47 " Define the default highlighting. 40 " Define the default highlighting.
48 " For version 5.7 and earlier: only when not done already 41 " Only when an item doesn't have highlighting yet
49 " For version 5.8 and later: only when an item doesn't have highlighting yet 42 command -nargs=+ HiLink hi def link <args>
50 if version >= 508 || !exists("did_dummy_syn_inits")
51 if version < 508
52 let did_dummy_syn_inits = 1
53 command -nargs=+ HiLink hi link <args>
54 else
55 command -nargs=+ HiLink hi def link <args>
56 endif
57 43
58 HiLink IstInpSpec Type 44 HiLink IstInpSpec Type
59 HiLink IstOutSpec Identifier 45 HiLink IstOutSpec Identifier
60 HiLink IstString String 46 HiLink IstString String
61 HiLink IstNumber Number 47 HiLink IstNumber Number
62 HiLink IstComment Comment 48 HiLink IstComment Comment
63 HiLink IstTodo Todo 49 HiLink IstTodo Todo
64 HiLink IstSpecial Special 50 HiLink IstSpecial Special
65 HiLink IstDoubleQuote Label 51 HiLink IstDoubleQuote Label
66 HiLink IstCharacter Label 52 HiLink IstCharacter Label
67 53
68 delcommand HiLink 54 delcommand HiLink
69 endif
70 55
71 let b:current_syntax = "ist" 56 let b:current_syntax = "ist"
72 57
73 let &cpo = s:cpo_save 58 let &cpo = s:cpo_save
74 unlet s:cpo_save 59 unlet s:cpo_save