Skip to content

Commit 4976736

Browse files
authored
Merge pull request #22 from dkearns/fix-vim-issue-15968
Add background-position-[xy] properties
2 parents 7b440b2 + 5f1375f commit 4976736

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Diff for: syntax/css.vim

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
" Nikolai Weibull (Add CSS2 support)
88
" URL: https://github.com/vim-language-dept/css-syntax.vim
99
" Maintainer: Jay Sitter <[email protected]>
10-
" Last Change: 2021 Oct 20
10+
" Last Change: 2024 Nov 12
1111

1212
" quit when a syntax file was already loaded
1313
if !exists("main_syntax")
@@ -160,7 +160,7 @@ syn keyword cssAnimationAttr contained infinite
160160
"------------------------------------------------
161161
" CSS Backgrounds and Borders Module Level 3
162162
" http://www.w3.org/TR/css3-background/
163-
syn match cssBackgroundProp contained "\<background\(-\(attachment\|clip\|color\|image\|origin\|position\|repeat\|size\)\)\=\>"
163+
syn match cssBackgroundProp contained "\<background\(-\(attachment\|clip\|color\|image\|origin\|position\(-[xy]\)\=\|repeat\|size\)\)\=\>"
164164
" background-attachment attributes
165165
syn keyword cssBackgroundAttr contained scroll fixed local
166166

Diff for: test.css

+6
Original file line numberDiff line numberDiff line change
@@ -337,3 +337,9 @@ and (max-device-width:1024px)
337337
margin-end: 0px; /* property shouldn't be highlighted */
338338
padding-end: 0px; /* property shouldn't be highlighted */
339339
}
340+
341+
/* Vim issue #15968 */
342+
#issue-vim-15968 {
343+
background-position-x: 20px;
344+
background-position-y: 20px;
345+
}

0 commit comments

Comments
 (0)