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