Mercurial > vim
annotate 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 |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: Makeindex style file, *.ist | |
3 " Maintainer: Peter Meszaros <pmeszaros@effice.hu> | |
3256 | 4 " Last Change: 2012 Jan 08 by Thilo Six |
7 | 5 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3256
diff
changeset
|
6 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3256
diff
changeset
|
7 if exists("b:current_syntax") |
7 | 8 finish |
9 endif | |
10 | |
3256 | 11 let s:cpo_save = &cpo |
12 set cpo&vim | |
13 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3256
diff
changeset
|
14 setlocal iskeyword=$,@,48-57,_ |
7 | 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. | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3256
diff
changeset
|
41 " Only when an item doesn't have highlighting yet |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3256
diff
changeset
|
42 command -nargs=+ HiLink hi def link <args> |
7 | 43 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3256
diff
changeset
|
44 HiLink IstInpSpec Type |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3256
diff
changeset
|
45 HiLink IstOutSpec Identifier |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3256
diff
changeset
|
46 HiLink IstString String |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3256
diff
changeset
|
47 HiLink IstNumber Number |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3256
diff
changeset
|
48 HiLink IstComment Comment |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3256
diff
changeset
|
49 HiLink IstTodo Todo |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3256
diff
changeset
|
50 HiLink IstSpecial Special |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3256
diff
changeset
|
51 HiLink IstDoubleQuote Label |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3256
diff
changeset
|
52 HiLink IstCharacter Label |
7 | 53 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3256
diff
changeset
|
54 delcommand HiLink |
7 | 55 |
56 let b:current_syntax = "ist" | |
57 | |
3256 | 58 let &cpo = s:cpo_save |
59 unlet s:cpo_save | |
7 | 60 " vim: ts=8 sw=2 |