[vim/vim] Fix cssBoxProp not matching correctly (Issue #18715)

5 views
Skip to first unread message

Neil Lambert

unread,
Nov 10, 2025, 12:46:22 PM (yesterday) Nov 10
to vim/vim, Subscribed
nlambert created an issue (vim/vim#18715)

Steps to reproduce

Create or edit a CSS file.

Paste the following:

div {
  margin-block: 1px;
  margin-block-start: 1px;
  margin-block-end: 1px;
}

See margin-block not highlighted while the two others are.

Expected behaviour

All three properties should be properly highlighted.

The current regex optionally matches the 2 last segments together.

It does not make the last segment dependent on the second.

The rule should be:

syn match cssBoxProp contained "\<\(margin\|padding\)\(-\(inline\|block\)\(-\(start\|end\)\)\=\)\=\>"

Version of Vim

VIM - Vi IMproved 9.1 (2024 Jan 02, compiled Oct 09 2025 19:38:56)

Environment

OS: Arch Linux 6.17.7-zen1-1-zen
Terminal: Alacritty alacritty 0.16.1 (42f49eeb)
TERM: alacritty
Shell: ZSH

Logs and stack traces


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

Christian Brabandt

unread,
Nov 10, 2025, 3:17:31 PM (yesterday) Nov 10
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#18715)

can you please create a PR for this?


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/18715/3513737997@github.com>

Christian Brabandt

unread,
1:05 PM (8 hours ago) 1:05 PM
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#18715)

fixed as of f85951f


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/18715/3518150256@github.com>

Christian Brabandt

unread,
1:05 PM (8 hours ago) 1:05 PM
to vim/vim, Subscribed

Closed #18715 as completed.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issue/18715/issue_event/20868718037@github.com>

Reply all
Reply to author
Forward
0 new messages