Skip to content

Commit a801b7b

Browse files
committed
1 parent f970b3a commit a801b7b

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

after/syntax/css/css-ui-4.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
syn match cssUIProp contained "\<caret\(-\(shape\|animation\)\)\=\>"
2+
syn keyword cssUIAttr contained fade underscore
3+
syn region cssFunction contained matchgroup=cssFunctionName start="\<fade\s*(" end=")" oneline keepend

after/syntax/html.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ syn include @htmlCss syntax/css/css-text-3.vim
4242
syn include @htmlCss syntax/css/css-text-4.vim
4343
syn include @htmlCss syntax/css/css-text-decor-3.vim
4444
syn include @htmlCss syntax/css/css-ui-3.vim
45+
syn include @htmlCss syntax/css/css-ui-4.vim
4546
syn include @htmlCss syntax/css/css-values.vim
4647
syn include @htmlCss syntax/css/css-variables.vim
4748
syn include @htmlCss syntax/css/css-will-change-1.vim

test/test.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,12 @@
588588
display: grabbing;
589589
}
590590

591+
.ui-4 {
592+
caret: fade;
593+
caret-shape: fade(1em);
594+
caret-animation: underscore;
595+
}
596+
591597
.values {
592598
display: 1ch;
593599
display: 1vw;

test/test.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,13 @@
642642
}
643643
</style>
644644
<style>
645+
.ui-4 {
646+
caret: fade;
647+
caret-shape: fade(1em);
648+
caret-animation: underscore;
649+
}
650+
</style>
651+
<style>
645652
.values {
646653
display: 1ch;
647654
display: 1vw;

0 commit comments

Comments
 (0)