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.
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\)\)\=\)\=\>"
VIM - Vi IMproved 9.1 (2024 Jan 02, compiled Oct 09 2025 19:38:56)
OS: Arch Linux 6.17.7-zen1-1-zen
Terminal: Alacritty alacritty 0.16.1 (42f49eeb)
TERM: alacritty
Shell: ZSH
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
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.![]()
fixed as of f85951f
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Closed #18715 as completed.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()