Skip to content

Commit f85951f

Browse files
Neil Lambertchrisbra
authored andcommitted
runtime(css): improve cssBoxProp matches
closes: #18717 Signed-off-by: Neil Lambert <[email protected]> Signed-off-by: Jay Sitter <[email protected]> Signed-off-by: Christian Brabandt <[email protected]>
1 parent 7dd51d3 commit f85951f

4 files changed

Lines changed: 29 additions & 1 deletion

File tree

.github/MAINTAINERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ nsis/lang/russian.nsi @RestorerZ
1313
runtime/autoload/freebasic.vim @dkearns
1414
runtime/autoload/hare.vim @selenebun
1515
runtime/autoload/hcl.vim @gpanders
16+
runtime/autoload/javascriptcomplete.vim @jsit
1617
runtime/autoload/modula2.vim @dkearns
1718
runtime/autoload/rubycomplete.vim @segfault @dkearns
1819
runtime/autoload/rust.vim @lilyball
@@ -463,6 +464,7 @@ runtime/syntax/chuck.vim @andreacfromtheapp
463464
runtime/syntax/clojure.vim @axvr
464465
runtime/syntax/codeowners.vim @jparise
465466
runtime/syntax/cs.vim @nickspoons
467+
runtime/syntax/css.vim @jsit
466468
runtime/syntax/csv.vim @habamax
467469
runtime/syntax/cucumber.vim @tpope
468470
runtime/syntax/d.vim @JesseKPhillips

runtime/syntax/css.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
" URL: https://github.com/vim-language-dept/css-syntax.vim
99
" Maintainer: Jay Sitter <[email protected]>
1010
" Last Change: 2024 Mar 2
11+
" 2025 Nov 11: improve support for cssBoxProperties #18717
1112

1213
" quit when a syntax file was already loaded
1314
if !exists("main_syntax")
@@ -197,7 +198,7 @@ syn keyword cssBorderAttr contained clone slice
197198

198199
syn match cssBoxProp contained "\<padding\(-\(top\|right\|bottom\|left\)\)\=\>"
199200
syn match cssBoxProp contained "\<margin\(-\(top\|right\|bottom\|left\)\)\=\>"
200-
syn match cssBoxProp contained "\<\(margin\|padding\)\(-\(inline\|block\)\(-\(start\|end\)\)\)\=\>"
201+
syn match cssBoxProp contained "\<\(margin\|padding\)\(-\(inline\|block\)\(-\(start\|end\)\)\=\)\=\>"
201202
syn match cssBoxProp contained "\<overflow\(-\(x\|y\|style\)\)\=\>"
202203
syn match cssBoxProp contained "\<rotation\(-point\)\=\>"
203204
syn keyword cssBoxAttr contained visible hidden scroll auto
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
>d+0#af5f00255#ffffff0|i|v| +0#0000000&|{+0#00e0e07&| +0#0000000&@69
2+
@2|m+0#00e0003&|a|r|g|i|n|-|b|l|o|c|k|:+0#0000000&| |1+0#e000002&|p|x|;+0#0000000&| @54
3+
@2|m+0#00e0003&|a|r|g|i|n|-|b|l|o|c|k|-|s|t|a|r|t|:+0#0000000&| |1+0#e000002&|p|x|;+0#0000000&| @48
4+
@2|m+0#00e0003&|a|r|g|i|n|-|b|l|o|c|k|-|e|n|d|:+0#0000000&| |1+0#e000002&|p|x|;+0#0000000&| @50
5+
|}+0#00e0e07&| +0#0000000&@73
6+
|~+0#4040ff13&| @73
7+
|~| @73
8+
|~| @73
9+
|~| @73
10+
|~| @73
11+
|~| @73
12+
|~| @73
13+
|~| @73
14+
|~| @73
15+
|~| @73
16+
|~| @73
17+
|~| @73
18+
|~| @73
19+
|~| @73
20+
| +0#0000000&@56|1|,|1| @10|A|l@1|
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
div {
2+
margin-block: 1px;
3+
margin-block-start: 1px;
4+
margin-block-end: 1px;
5+
}

0 commit comments

Comments
 (0)