annotate runtime/syntax/manconf.vim @ 10501:cd36f3024b06 v8.0.0143

commit https://github.com/vim/vim/commit/f845b87f2b3a45cbee160e28d7a3f50e54054809 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 6 14:04:54 2017 +0100 patch 8.0.0143: line number of current buffer in getbufinfo() is wrong Problem: Line number of current buffer in getbufinfo() is wrong. Solution: For the current buffer use the current line number. (Ken Takata)
author Christian Brabandt <cb@256bit.org>
date Fri, 06 Jan 2017 14:15:04 +0100
parents 1f3b1021f002
children 1218c5353e2b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
1 " Vim syntax file
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
2 " Language: man.conf(5) - man configuration file
839
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 389
diff changeset
3 " Maintainer: Nikolai Weibull <now@bitwi.se>
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 389
diff changeset
4 " Latest Revision: 2006-04-19
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
5
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
6 if exists("b:current_syntax")
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
7 finish
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
8 endif
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
9
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
10 let s:cpo_save = &cpo
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
11 set cpo&vim
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
12
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
13 syn keyword manconfTodo contained TODO FIXME XXX NOTE
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
14
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
15 syn region manconfComment display oneline start='^#' end='$'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
16 \ contains=manconfTodo,@Spell
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
17
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
18 if !has("win32") && $OSTYPE =~ 'bsd'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
19 syn match manconfBegin display '^'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
20 \ nextgroup=manconfKeyword,manconfSection,
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
21 \ manconfComment skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
22
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
23 syn keyword manconfKeyword contained _build _crunch
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
24 \ nextgroup=manconfExtCmd skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
25
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
26 syn keyword manconfKeyword contained _suffix
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
27 \ nextgroup=manconfExt skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
28
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
29 syn keyword manconfKeyword contained _crunch
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
30
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
31 syn keyword manconfKeyword contained _subdir _version _whatdb
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
32 \ nextgroup=manconfPaths skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
33
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
34 syn match manconfExtCmd contained display '\.\S\+'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
35 \ nextgroup=manconfPaths skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
36
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
37 syn match manconfSection contained '[^#_ \t]\S*'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
38 \ nextgroup=manconfPaths skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
39
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
40 syn keyword manconfSection contained _default
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
41 \ nextgroup=manconfPaths skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
42
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
43 syn match manconfPaths contained display '\S\+'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
44 \ nextgroup=manconfPaths skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
45
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
46 syn match manconfExt contained display '\.\S\+'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
47
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
48 hi def link manconfExtCmd Type
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
49 hi def link manconfSection Identifier
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
50 hi def link manconfPaths String
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
51 else
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
52 syn match manconfBegin display '^'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
53 \ nextgroup=manconfBoolean,manconfKeyword,
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
54 \ manconfDecompress,manconfComment skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
55
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
56 syn keyword manconfBoolean contained FSSTND FHS NOAUTOPATH NOCACHE
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
57
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
58 syn keyword manconfKeyword contained MANBIN
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
59 \ nextgroup=manconfPath skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
60
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
61 syn keyword manconfKeyword contained MANPATH MANPATH_MAP
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
62 \ nextgroup=manconfFirstPath skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
63
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
64 syn keyword manconfKeyword contained APROPOS WHATIS TROFF NROFF JNROFF EQN
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
65 \ NEQN JNEQN TBL COL REFER PIC VGRIND GRAP
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
66 \ PAGER BROWSER HTMLPAGER CMP CAT COMPRESS
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
67 \ DECOMPRESS MANDEFOPTIONS
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
68 \ nextgroup=manconfCommand skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
69
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
70 syn keyword manconfKeyword contained COMPRESS_EXT
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
71 \ nextgroup=manconfExt skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
72
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
73 syn keyword manconfKeyword contained MANSECT
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
74 \ nextgroup=manconfManSect skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
75
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
76 syn match manconfPath contained display '\S\+'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
77
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
78 syn match manconfFirstPath contained display '\S\+'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
79 \ nextgroup=manconfSecondPath skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
80
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
81 syn match manconfSecondPath contained display '\S\+'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
82
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
83 syn match manconfCommand contained display '\%(/[^/ \t]\+\)\+'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
84 \ nextgroup=manconfCommandOpt skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
85
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
86 syn match manconfCommandOpt contained display '\S\+'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
87 \ nextgroup=manconfCommandOpt skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
88
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
89 syn match manconfExt contained display '\.\S\+'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
90
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
91 syn match manconfManSect contained '[^:]\+' nextgroup=manconfManSectSep
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
92
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
93 syn match manconfManSectSep contained ':' nextgroup=manconfManSect
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
94
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
95 syn match manconfDecompress contained '\.\S\+'
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
96 \ nextgroup=manconfCommand skipwhite
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
97
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
98 hi def link manconfBoolean Boolean
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
99 hi def link manconfPath String
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
100 hi def link manconfFirstPath manconfPath
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
101 hi def link manconfSecondPath manconfPath
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
102 hi def link manconfCommand String
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
103 hi def link manconfCommandOpt Special
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
104 hi def link manconfManSect Identifier
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
105 hi def link manconfManSectSep Delimiter
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
106 hi def link manconfDecompress Type
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
107 endif
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
108
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
109 hi def link manconfTodo Todo
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
110 hi def link manconfComment Comment
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
111 hi def link manconfKeyword Keyword
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
112 hi def link manconfExt Type
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
113
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
114 let b:current_syntax = "manconf"
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
115
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
116 let &cpo = s:cpo_save
4fe8e1a7758e updated for version 7.0102
vimboss
parents:
diff changeset
117 unlet s:cpo_save