annotate runtime/syntax/limits.vim @ 18486:9d887cad7315

Added tag v8.1.2237 for changeset 63ee3c2b140fe1b4801389872a8e47aec19d028b
author Bram Moolenaar <Bram@vim.org>
date Thu, 31 Oct 2019 20:00:04 +0100
parents 1218c5353e2b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
375
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
1 " Vim syntax file
11062
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 839
diff changeset
2 " Language: limits(5) configuration file
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 839
diff changeset
3 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 839
diff changeset
4 " Latest Revision: 2006-04-19
375
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
5
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
6 if exists("b:current_syntax")
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
7 finish
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
8 endif
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
9
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
10 let s:cpo_save = &cpo
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
11 set cpo&vim
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
12
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
13 syn keyword limitsTodo contained TODO FIXME XXX NOTE
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
14
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
15 syn region limitsComment display oneline start='^\s*#' end='$'
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
16 \ contains=limitsTodo,@Spell
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
17
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
18 syn match limitsBegin display '^'
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
19 \ nextgroup=limitsUser,limitsDefault,limitsComment
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
20 \ skipwhite
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
21
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
22 syn match limitsUser contained '[^ \t#*]\+'
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
23 \ nextgroup=limitsLimit,limitsDeLimit skipwhite
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
24
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
25 syn match limitsDefault contained '*'
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
26 \ nextgroup=limitsLimit,limitsDeLimit skipwhite
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
27
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
28 syn match limitsLimit contained '[ACDFMNRSTUKLP]' nextgroup=limitsNumber
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
29 syn match limitsDeLimit contained '-'
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
30
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
31 syn match limitsNumber contained '\d\+\>' nextgroup=limitsLimit skipwhite
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
32
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
33 hi def link limitsTodo Todo
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
34 hi def link limitsComment Comment
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
35 hi def link limitsUser Keyword
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
36 hi def link limitsDefault Macro
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
37 hi def link limitsLimit Identifier
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
38 hi def link limitsDeLimit Special
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
39 hi def link limitsNumber Number
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
40
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
41 let b:current_syntax = "limits"
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
42
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
43 let &cpo = s:cpo_save
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
44 unlet s:cpo_save