[vim/vim] runtime(sudoers): highlight usernames with hyphens, digits, underscores (PR #19396)

5 views
Skip to first unread message

Bozhidar Batsov

unread,
Feb 13, 2026, 10:06:58 AM (3 days ago) Feb 13
to vim/vim, Subscribed

The username, group, and netgroup patterns in the sudoers syntax file used \l\+ which only matched pure lowercase letters. Linux usernames commonly contain hyphens, digits, and underscores (e.g. www-data, deploy01, test_user), so these weren't getting highlighted.

Changed \l\+ to \l[-a-z0-9_]* in all 12 affected patterns (UserName, Group, UserNetgroup across all four contexts).

Closes #18963


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/19396

Commit Summary

  • d4c2bc1 runtime(sudoers): highlight usernames with hyphens, digits, underscores

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19396@github.com>

Christian Brabandt

unread,
Feb 13, 2026, 10:46:08 AM (3 days ago) Feb 13
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#19396)

@e-kwsm did not re-act to the original issue, so I'll merge it and leave a not in the syntax script. Thanks


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19396/c3897904142@github.com>

Christian Brabandt

unread,
Feb 13, 2026, 10:51:35 AM (3 days ago) Feb 13
to vim/vim, Subscribed

Closed #19396 via a39d7c2.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19396/issue_event/22770373587@github.com>

Eisuke Kawashima

unread,
Feb 15, 2026, 12:53:39 PM (21 hours ago) Feb 15
to vim/vim, Subscribed
e-kwsm left a comment (vim/vim#19396)

Sorry, I didn't notice the issue. Thank you for your work.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19396/c3904910173@github.com>

Reply all
Reply to author
Forward
0 new messages