Commit: runtime(logindefs): update syntax with new keywords

4 views
Skip to first unread message

Christian Brabandt

unread,
Jul 12, 2024, 2:00:13 AM7/12/24
to vim...@googlegroups.com
runtime(logindefs): update syntax with new keywords

Commit: https://github.com/vim/vim/commit/57f7d75591da0ec91068741eefbad295be8f78b4
Author: Eisuke Kawashima <e-k...@users.noreply.github.com>
Date: Fri Jul 12 07:46:43 2024 +0200

runtime(logindefs): update syntax with new keywords

* add keywords
* enforce octal format for permissions

closes: #15222

Signed-off-by: Eisuke Kawashima <e-k...@users.noreply.github.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/syntax/logindefs.vim b/runtime/syntax/logindefs.vim
index 8cb4295ed..51fa19992 100644
--- a/runtime/syntax/logindefs.vim
+++ b/runtime/syntax/logindefs.vim
@@ -1,7 +1,8 @@
-" Vim syntax file
+" Vim syntax file for login.defs(5)
" Language: login.defs(5) configuration file
" Previous Maintainer: Nikolai Weibull <n...@bitwi.se>
" Latest Revision: 2010-11-29
+" 2024 Jul 12 by Vim Project: Update keywords

if exists("b:current_syntax")
finish
@@ -35,6 +36,8 @@ syn keyword logindefsBooleanKeyword contained
\ CREATE_HOME
\ DEFAULT_HOME
\ FAILLOG_ENAB
+ \ FORCE_SHADOW
+ \ GRANT_AUX_GROUP_SUBIDS
\ LASTLOG_ENAB
\ LOG_OK_LOGINS
\ LOG_UNKFAIL_ENAB
@@ -54,15 +57,20 @@ syn keyword logindefsBoolean contained yes no

syn keyword logindefsEncryptKeyword contained
\ ENCRYPT_METHOD
+ \ HMAC_CRYPTO_ALGO
\ nextgroup=logindefsEncryptMethod skipwhite

syn keyword logindefsEncryptMethod contained
+ \ BCRYPT
\ DES
\ MD5
\ SHA256
\ SHA512
+ \ YESCRYPT

syn keyword logindefsNumberKeyword contained
+ \ BCRYPT_MAX_ROUNDS
+ \ BCRYPT_MIN_ROUNDS
\ ERASECHAR
\ FAIL_DELAY
\ GID_MAX
@@ -79,6 +87,12 @@ syn keyword logindefsNumberKeyword contained
\ PASS_MIN_LEN
\ SHA_CRYPT_MAX_ROUNDS
\ SHA_CRYPT_MIN_ROUNDS
+ \ SUB_GID_COUNT
+ \ SUB_GID_MAX
+ \ SUB_GID_MIN
+ \ SUB_UID_COUNT
+ \ SUB_UID_MAX
+ \ SUB_UID_MIN
\ SYS_GID_MAX
\ SYS_GID_MIN
\ SYS_UID_MAX
@@ -86,9 +100,15 @@ syn keyword logindefsNumberKeyword contained
\ UID_MAX
\ UID_MIN
\ ULIMIT
- \ UMASK
+ \ YESCRYPT_COST_FACTOR
\ nextgroup=@logindefsNumber skipwhite

+syn keyword logindefsNumberKeyword contained
+ \ HOME_MODE
+ \ TTYPERM
+ \ UMASK
+ \ nextgroup=logindefsOctal,logindefsOctalError skipwhite
+
syn cluster logindefsNumber contains=
\ logindefsDecimal,
\ logindefsHex,
@@ -114,6 +134,7 @@ syn keyword logindefsPathKeyword contained
\ MAIL_DIR
\ MAIL_FILE
\ NOLOGINS_FILE
+ \ NONEXISTENT
\ SULOG_FILE
\ TTYTYPE_FILE
\ nextgroup=logindefsPath skipwhite
@@ -138,9 +159,9 @@ syn keyword logindefsStringKeyword contained
\ ENV_HZ
\ ENV_TZ
\ LOGIN_STRING
+ \ PREVENT_NO_AUTH
\ SU_NAME
\ TTYGROUP
- \ TTYPERM
\ USERDEL_CMD
\ nextgroup=logindefsString skipwhite

Reply all
Reply to author
Forward
0 new messages