annotate runtime/syntax/ist.vim @ 1628:db1f7f1c40df

updated for version 7.2a
author vimboss
date Wed, 25 Jun 2008 00:22:05 +0000
parents 3fc0f57ecb91
children ba708ee8d69d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: Makeindex style file, *.ist
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Peter Meszaros <pmeszaros@effice.hu>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Last Change: May 4, 2001
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 if version >= 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 setlocal iskeyword=$,@,48-57,_
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 set iskeyword=$,@,48-57,_
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn keyword IstInpSpec actual arg_close arg_open encap escape
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn keyword IstInpSpec keyword level quote range_close range_open
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn keyword IstInpSpec page_compositor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn keyword IstOutSpec preamble postamble setpage_prefix setpage_suffix group_skip
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn keyword IstOutSpec headings_flag heading_prefix heading_suffix
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn keyword IstOutSpec lethead_flag lethead_prefix lethead_suffix
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn keyword IstOutSpec symhead_positive symhead_negative numhead_positive numhead_negative
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn keyword IstOutSpec item_0 item_1 item_2 item_01
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn keyword IstOutSpec item_x1 item_12 item_x2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn keyword IstOutSpec delim_0 delim_1 delim_2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn keyword IstOutSpec delim_n delim_r delim_t
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn keyword IstOutSpec encap_prefix encap_infix encap_suffix
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn keyword IstOutSpec line_max indent_space indent_length
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn keyword IstOutSpec suffix_2p suffix_3p suffix_mp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn region IstString matchgroup=IstDoubleQuote start=+"+ skip=+\\"+ end=+"+ contains=IstSpecial
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn match IstCharacter "'.'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn match IstNumber "\d\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn match IstComment "^[\t ]*%.*$" contains=IstTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn match IstSpecial "\\\\\|{\|}\|#\|\\n" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn match IstTodo "DEBUG\|TODO" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 if version >= 508 || !exists("did_dummy_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 let did_dummy_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 HiLink IstInpSpec Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 HiLink IstOutSpec Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 HiLink IstString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 HiLink IstNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 HiLink IstComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 HiLink IstTodo Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 HiLink IstSpecial Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 HiLink IstDoubleQuote Label
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 HiLink IstCharacter Label
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 let b:current_syntax = "ist"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 " vim: ts=8 sw=2