ist.vim (2000B)
1 " Vim syntax file 2 " Language: Makeindex style file, *.ist 3 " Maintainer: Peter Meszaros <pmeszaros@effice.hu> 4 " Last Change: 2012 Jan 08 by Thilo Six 5 6 " quit when a syntax file was already loaded 7 if exists("b:current_syntax") 8 finish 9 endif 10 11 let s:cpo_save = &cpo 12 set cpo&vim 13 14 setlocal iskeyword=$,@,48-57,_ 15 16 syn case ignore 17 syn keyword IstInpSpec actual arg_close arg_open encap escape 18 syn keyword IstInpSpec keyword level quote range_close range_open 19 syn keyword IstInpSpec page_compositor 20 21 syn keyword IstOutSpec preamble postamble setpage_prefix setpage_suffix group_skip 22 syn keyword IstOutSpec headings_flag heading_prefix heading_suffix 23 syn keyword IstOutSpec lethead_flag lethead_prefix lethead_suffix 24 syn keyword IstOutSpec symhead_positive symhead_negative numhead_positive numhead_negative 25 syn keyword IstOutSpec item_0 item_1 item_2 item_01 26 syn keyword IstOutSpec item_x1 item_12 item_x2 27 syn keyword IstOutSpec delim_0 delim_1 delim_2 28 syn keyword IstOutSpec delim_n delim_r delim_t 29 syn keyword IstOutSpec encap_prefix encap_infix encap_suffix 30 syn keyword IstOutSpec line_max indent_space indent_length 31 syn keyword IstOutSpec suffix_2p suffix_3p suffix_mp 32 33 syn region IstString matchgroup=IstDoubleQuote start=+"+ skip=+\\"+ end=+"+ contains=IstSpecial 34 syn match IstCharacter "'.'" 35 syn match IstNumber "\d\+" 36 syn match IstComment "^[\t ]*%.*$" contains=IstTodo 37 syn match IstSpecial "\\\\\|{\|}\|#\|\\n" contained 38 syn match IstTodo "DEBUG\|TODO" contained 39 40 " Define the default highlighting. 41 " Only when an item doesn't have highlighting yet 42 43 hi def link IstInpSpec Type 44 hi def link IstOutSpec Identifier 45 hi def link IstString String 46 hi def link IstNumber Number 47 hi def link IstComment Comment 48 hi def link IstTodo Todo 49 hi def link IstSpecial Special 50 hi def link IstDoubleQuote Label 51 hi def link IstCharacter Label 52 53 54 let b:current_syntax = "ist" 55 56 let &cpo = s:cpo_save 57 unlet s:cpo_save 58 " vim: ts=8 sw=2