Skip to content

Commit 0e7167b

Browse files
committed
1 parent 96ae247 commit 0e7167b

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

after/syntax/css/values-4.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
syn match cssValueLength contained "[-+]\=\d\+\(\.\d*\)\=\(vi\|vb\|ic\|cap\|lh\|rlh\)"
2-
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(min\|max\|clamp\|toggle\)\s*(" end=")" oneline keepend
2+
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(min\|max\|clamp\|toggle\|round\|mod\|rem\|a\=\(sin\|cos\|tan\)\|atan2\|pow\|sqrt\|hypot\|log\|exp\|abs\|sign\)\s*(" end=")" oneline keepend

test/test.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1161,6 +1161,23 @@ view {
11611161
display: max(0, 1);
11621162
display: clamp(0, 100, 2);
11631163
display: toggle(italic, normal);
1164+
display: round(var(--width), 50px);
1165+
display: mod(-18px, 5px);
1166+
display: rem(-18px, 5px);
1167+
display: sin(45deg);
1168+
display: cos(1);
1169+
display: tan(1);
1170+
display: asin(45deg);
1171+
display: acos(1);
1172+
display: atan(1);
1173+
display: atan2(1, -1);
1174+
display: pow(1.5, -1);
1175+
display: sqrt(4);
1176+
display: hypot(30px, 40px);
1177+
display: log(10);
1178+
display: exp(1);
1179+
display: abs(-1);
1180+
display: sign(-4);
11641181
}
11651182

11661183
.variables-1 {

0 commit comments

Comments
 (0)