annotate runtime/syntax/ist.vim @ 3995:c2ea289a5b7f

Added tag v7-3-752 for changeset ed936effb1f3
author Bram Moolenaar <bram@vim.org>
date Wed, 05 Dec 2012 19:00:06 +0100
parents ba708ee8d69d
children 43efa4f5a8ea
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>
3256
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
4 " Last Change: 2012 Jan 08 by Thilo Six
7
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
3256
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
14 let s:cpo_save = &cpo
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
15 set cpo&vim
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
16
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 if version >= 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 setlocal iskeyword=$,@,48-57,_
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 set iskeyword=$,@,48-57,_
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn keyword IstInpSpec actual arg_close arg_open encap escape
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn keyword IstInpSpec keyword level quote range_close range_open
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn keyword IstInpSpec page_compositor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn keyword IstOutSpec preamble postamble setpage_prefix setpage_suffix group_skip
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn keyword IstOutSpec headings_flag heading_prefix heading_suffix
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn keyword IstOutSpec lethead_flag lethead_prefix lethead_suffix
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn keyword IstOutSpec symhead_positive symhead_negative numhead_positive numhead_negative
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn keyword IstOutSpec item_0 item_1 item_2 item_01
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn keyword IstOutSpec item_x1 item_12 item_x2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn keyword IstOutSpec delim_0 delim_1 delim_2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn keyword IstOutSpec delim_n delim_r delim_t
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn keyword IstOutSpec encap_prefix encap_infix encap_suffix
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn keyword IstOutSpec line_max indent_space indent_length
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn keyword IstOutSpec suffix_2p suffix_3p suffix_mp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn region IstString matchgroup=IstDoubleQuote start=+"+ skip=+\\"+ end=+"+ contains=IstSpecial
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn match IstCharacter "'.'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn match IstNumber "\d\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn match IstComment "^[\t ]*%.*$" contains=IstTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn match IstSpecial "\\\\\|{\|}\|#\|\\n" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn match IstTodo "DEBUG\|TODO" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 " 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
50 if version >= 508 || !exists("did_dummy_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 let did_dummy_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 HiLink IstInpSpec Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 HiLink IstOutSpec Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 HiLink IstString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 HiLink IstNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 HiLink IstComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 HiLink IstTodo Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 HiLink IstSpecial Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 HiLink IstDoubleQuote Label
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 HiLink IstCharacter Label
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 let b:current_syntax = "ist"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72
3256
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
73 let &cpo = s:cpo_save
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
74 unlet s:cpo_save
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 " vim: ts=8 sw=2