annotate runtime/syntax/ist.vim @ 27358:609a8ff1a5d2 v8.2.4207

patch 8.2.4207: recursion test fails with MSVC Commit: https://github.com/vim/vim/commit/50e05254450954f04183efc7bc871527a67868b8 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jan 24 18:36:39 2022 +0000 patch 8.2.4207: recursion test fails with MSVC Problem: Recursion test fails with MSVC. Solution: Use a smaller limit for MSVC.
author Bram Moolenaar <Bram@vim.org>
date Mon, 24 Jan 2022 19:45:03 +0100
parents 46763b01cd9a
children
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
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
3256
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
11 let s:cpo_save = &cpo
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
12 set cpo&vim
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn keyword IstInpSpec actual arg_close arg_open encap escape
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn keyword IstInpSpec keyword level quote range_close range_open
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn keyword IstInpSpec page_compositor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn keyword IstOutSpec preamble postamble setpage_prefix setpage_suffix group_skip
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn keyword IstOutSpec headings_flag heading_prefix heading_suffix
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn keyword IstOutSpec lethead_flag lethead_prefix lethead_suffix
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn keyword IstOutSpec symhead_positive symhead_negative numhead_positive numhead_negative
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn keyword IstOutSpec item_0 item_1 item_2 item_01
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn keyword IstOutSpec item_x1 item_12 item_x2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn keyword IstOutSpec delim_0 delim_1 delim_2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn keyword IstOutSpec delim_n delim_r delim_t
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn keyword IstOutSpec encap_prefix encap_infix encap_suffix
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn keyword IstOutSpec line_max indent_space indent_length
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn keyword IstOutSpec suffix_2p suffix_3p suffix_mp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn region IstString matchgroup=IstDoubleQuote start=+"+ skip=+\\"+ end=+"+ contains=IstSpecial
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn match IstCharacter "'.'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn match IstNumber "\d\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn match IstComment "^[\t ]*%.*$" contains=IstTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn match IstSpecial "\\\\\|{\|}\|#\|\\n" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn match IstTodo "DEBUG\|TODO" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
43 hi def link IstInpSpec Type
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
44 hi def link IstOutSpec Identifier
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
45 hi def link IstString String
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
46 hi def link IstNumber Number
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
47 hi def link IstComment Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
48 hi def link IstTodo Todo
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
49 hi def link IstSpecial Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
50 hi def link IstDoubleQuote Label
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
51 hi def link IstCharacter Label
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 let b:current_syntax = "ist"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55
3256
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
56 let &cpo = s:cpo_save
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
57 unlet s:cpo_save
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 " vim: ts=8 sw=2