annotate runtime/syntax/logindefs.vim @ 1621:82b5078be2dd

updated for version 7.2a
author vimboss
date Tue, 24 Jun 2008 21:56:24 +0000
parents 1f3b1021f002
children 916c90b37ea9
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
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
2 " Language: login.defs(5) configuration file
839
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 375
diff changeset
3 " Maintainer: Nikolai Weibull <now@bitwi.se>
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 375
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 logindefsTodo 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 logindefsComment display oneline start='^\s*#' end='$'
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
16 \ contains=logindefsTodo,@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 logindefsString contained '[[:graph:]]\+'
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
19
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
20 syn match logindefsPath contained '[[:graph:]]\+'
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
21
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
22 syn match logindefsPaths contained '[[:graph:]]\+'
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
23 \ nextgroup=logindefsPathDelim
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
24
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
25 syn match logindefsPathDelim contained ':' nextgroup=logindefsPaths
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
26
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
27 syn keyword logindefsBoolean contained yes no
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
28
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
29 syn match logindefsDecimal contained '\<\d\+\>'
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
30
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
31 syn match logindefsOctal contained display '\<0\o\+\>'
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
32 \ contains=logindefsOctalZero
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
33 syn match logindefsOctalZero contained display '\<0'
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
34 syn match logindefsOctalError contained display '\<0\o*[89]\d*\>'
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
35
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
36 syn match logindefsHex contained display '\<0x\x\+\>'
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
37
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
38 syn cluster logindefsNumber contains=logindefsDecimal,logindefsOctal,
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
39 \ logindefsOctalError,logindefsHex
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
40
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
41 syn match logindefsBegin display '^'
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
42 \ nextgroup=logindefsKeyword,logindefsComment
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
43 \ skipwhite
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
44
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
45 syn keyword logindefsKeyword contained CHFN_AUTH CLOSE_SESSIONS CREATE_HOME
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
46 \ DEFAULT_HOME FAILLOG_ENAB LASTLOG_ENAB
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
47 \ LOG_OK_LOGINS LOG_UNKFAIL_ENAB MAIL_CHECK_ENAB
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
48 \ MD5_CRYPT_ENAB OBSCURE_CHECKS_ENAB
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
49 \ PASS_ALWAYS_WARN PORTTIME_CHECKS_ENAB
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
50 \ QUOTAS_ENAB SU_WHEEL_ONLY SYSLOG_SG_ENAB
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
51 \ SYSLOG_SU_ENAB USERGROUPS_ENAB
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
52 \ nextgroup=logindefsBoolean skipwhite
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
53
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
54 syn keyword logindefsKeyword contained CHFN_RESTRICT CONSOLE CONSOLE_GROUPS
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
55 \ ENV_TZ ENV_HZ FAKE_SHELL SU_NAME LOGIN_STRING
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
56 \ NOLOGIN_STR TTYGROUP USERDEL_CMD
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
57 \ nextgroup=logindefsString skipwhite
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
58
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
59 syn keyword logindefsKeyword contained ENVIRON_FILE FTMP_FILE HUSHLOGIN_FILE
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
60 \ ISSUE_FILE MAIL_DIR MAIL_FILE NOLOGINS_FILE
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
61 \ NOLOGINS_FILE TTYTYPE_FILE QMAIL_DIR
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
62 \ SULOG_FILE
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
63 \ nextgroup=logindefsPath skipwhite
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
64
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
65 syn keyword logindefsKeyword contained CRACKLIB_DICTPATH ENV_PATH
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
66 \ ENV_ROOTPATH ENV_SUPATH MOTD_FILE
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
67 \ nextgroup=logindefsPaths skipwhite
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
68
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
69 syn keyword logindefsKeyword contained ERASECHAR FAIL_DELAY GETPASS_ASTERISKS
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
70 \ GID_MAX GID_MIN KILLCHAR LOGIN_RETRIES
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
71 \ LOGIN_TIMEOUT PASS_CHANGE_TRIES PASS_MAX_DAYS
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
72 \ PASS_MAX_LEN PASS_MIN_DAYS PASS_MIN_LEN
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
73 \ PASS_WARN_AGE TTYPERM UID_MAX UID_MIN ULIMIT
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
74 \ UMASK
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
75 \ nextgroup=@logindefsNumber skipwhite
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
76
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
77 hi def link logindefsTodo Todo
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
78 hi def link logindefsComment Comment
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
79 hi def link logindefsString String
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
80 hi def link logindefsPath String
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
81 hi def link logindefsPaths logindefsPath
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
82 hi def link logindefsPathDelim Delimiter
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
83 hi def link logindefsBoolean Boolean
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
84 hi def link logindefsDecimal Number
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
85 hi def link logindefsOctal Number
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
86 hi def link logindefsOctalZero PreProc
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
87 hi def link logindefsOctalError Error
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
88 hi def link logindefsHex Number
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
89 hi def link logindefsKeyword Keyword
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
90
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
91 let b:current_syntax = "logindefs"
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
92
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
93 let &cpo = s:cpo_save
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
94 unlet s:cpo_save