mirror of
https://github.com/hail2u/vim-css3-syntax.git
synced 2025-12-06 18:54:25 +08:00
Compare commits
29 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7099472463 | ||
|
|
331f244564 | ||
|
|
0e7167b160 | ||
|
|
96ae247194 | ||
|
|
a8545763fe | ||
|
|
ac0823e31b | ||
|
|
5a816e9569 | ||
|
|
11234a106c | ||
|
|
1043cc17af | ||
|
|
6a5285ba3c | ||
|
|
7ca800647c | ||
|
|
790e68661f | ||
|
|
b3c992b4f5 | ||
|
|
75fb895763 | ||
|
|
7a6a010fd8 | ||
|
|
f467f96911 | ||
|
|
f0d6e95e7e | ||
|
|
0d27605a19 | ||
|
|
f13a51f51d | ||
|
|
a5cacf8839 | ||
|
|
d0e4091e57 | ||
|
|
a1b7e3e0f4 | ||
|
|
d9ec9eeeec | ||
|
|
84b98663ec | ||
|
|
3018a7e3ae | ||
|
|
5deaa67782 | ||
|
|
c39cc87a12 | ||
|
|
7ccfd713c1 | ||
|
|
283c8447cd |
1
.github/FUNDING.yml
vendored
Normal file
1
.github/FUNDING.yml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
github: [hail2u]
|
||||
@@ -8,7 +8,7 @@ CSS3 syntax (and syntax defined in some foreign specifications) support for
|
||||
INSTALLATION
|
||||
------------
|
||||
|
||||
I **strongly** recommend to install this plugin on *Vim 8.1 or higher with
|
||||
I **strongly** recommend to install this plugin on *Vim 8.2 or higher with
|
||||
default runtime files*.
|
||||
|
||||
|
||||
@@ -83,13 +83,13 @@ want to highlight Media Queries correctly, you must update Vim to 8.0+.
|
||||
AUTHOR
|
||||
------
|
||||
|
||||
Kyo Nagashima <hail2u@gmail.com> (https://kyonagashima.com/)
|
||||
Kyo Nagashima <hail2u@gmail.com> (https://hail2u.net/)
|
||||
|
||||
|
||||
LICENSE
|
||||
-------
|
||||
|
||||
MIT License
|
||||
MIT
|
||||
|
||||
|
||||
[1]: http://www.vim.org/
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
syn keyword cssFontAttr contained perceptual
|
||||
syn match cssFontAttr contained "\<\(relative\|absolute\)-colorimetric\>"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(hwb\|lab\|lch\|gray\|color\|device-cmyk\=\)\s*(" end=")" oneline keepend
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(hwb\|lab\|lch\|color\|device-cmyk\=\)\s*(" end=")" oneline keepend
|
||||
syn match cssFontDescriptor "@color-profile\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
syn match cssColorProp contained "\<\(forced-\)\=color-adjust\>"
|
||||
syn match cssColorProp contained "\<color-scheme\>"
|
||||
syn keyword cssFontAttr contained only economy exact
|
||||
syn keyword cssFontAttr contained economy exact
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
syn match cssFontProp contained "\<content-visibility\>"
|
||||
|
||||
1
after/syntax/css/highlight-api-1.vim
Normal file
1
after/syntax/css/highlight-api-1.vim
Normal file
@@ -0,0 +1 @@
|
||||
syn region cssPseudoClassFn contained matchgroup=cssFunctionName start="\<highlight(" end=")" contains=cssStringQ,cssStringQQ
|
||||
@@ -1,5 +1,8 @@
|
||||
syn match cssFontProp contained "\<\(dominant\|alignment\)-baseline\>"
|
||||
syn match cssFontProp contained "\<baseline-shift\>"
|
||||
syn match cssFontProp contained "\<baseline-\(shift\|source\)\>"
|
||||
syn match cssFontProp contained "\<text-edge\>"
|
||||
syn match cssFontProp contained "\<leading-trim\>"
|
||||
syn match cssFontProp contained "\<inline-sizing\>"
|
||||
syn match cssFontProp contained "\<initial-letters\(-\(align\|wrap\)\)\="
|
||||
syn keyword cssFontAttr contained mathematical ideographic
|
||||
syn match cssFontProp contained "\<initial-letter\(-\(align\|wrap\)\)\=\>"
|
||||
syn keyword cssFontAttr contained central mathematical leading cap ex drop raise
|
||||
syn match cssFontAttr contained "\<ideographic\(-ink\)\=\>"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
syn keyword cssFontProp contained continue
|
||||
syn match cssFontProp contained "\<block-overflow\>"
|
||||
syn match cssFontProp contained "\<overflow-\(clip-margin\|block\|inline\)\>"
|
||||
syn match cssFontProp contained "\<block-ellipsis\>"
|
||||
syn match cssFontProp contained "\<line-clamp\>"
|
||||
syn match cssFontProp contained "\<max-lines\>"
|
||||
syn match cssFontProp contained "\<overflow-\(block\|inline\)\>"
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
syn match cssValueLength contained "[-+]\=\d\+\(\.\d*\)\=\(vi\|vb\|ic\|cap\|lh\|rlh\)"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(min\|max\|clamp\|toggle\)\s*(" end=")" oneline keepend
|
||||
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
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
.unofficials {
|
||||
backdrop-filter: auto;
|
||||
display: env(safe-area-inset-top, 20px);
|
||||
}
|
||||
|
||||
.align-3 {
|
||||
place-self: auto;
|
||||
place-content: auto;
|
||||
@@ -88,7 +83,6 @@
|
||||
display: hwb(120deg, 44%, 50%);
|
||||
display: lab(1 2 3);
|
||||
display: lch(4 5 6);
|
||||
display: gray(50%);
|
||||
display: color(swopc, 0 206 190 77);
|
||||
display: device-cmyk(0, 81%, 81%, 30%);
|
||||
display: relative-colorimetric;
|
||||
@@ -110,7 +104,7 @@
|
||||
color-scheme: auto;
|
||||
forced-color-adjust: auto;
|
||||
color-adjust: auto;
|
||||
display: only light;
|
||||
display: light;
|
||||
display: economy;
|
||||
display: exact;
|
||||
}
|
||||
@@ -152,7 +146,7 @@
|
||||
}
|
||||
|
||||
.contain-2 {
|
||||
display: auto;
|
||||
content-visibility: auto;
|
||||
}
|
||||
|
||||
.content-3 {
|
||||
@@ -401,7 +395,7 @@
|
||||
footnote-display: auto;
|
||||
footnote-policy: auto;
|
||||
display: footnote;
|
||||
display: line;
|
||||
display: line;
|
||||
display: element(header);
|
||||
display: running(heading);
|
||||
}
|
||||
@@ -422,6 +416,10 @@
|
||||
display: auto;
|
||||
}
|
||||
|
||||
.highlight-api-1::highlight(test) {
|
||||
display: auto;
|
||||
}
|
||||
|
||||
.html5,
|
||||
picture,
|
||||
rb,
|
||||
@@ -454,13 +452,23 @@ template {
|
||||
.inline-3 {
|
||||
dominant-baseline: auto;
|
||||
alignment-baseline: auto;
|
||||
baseline-source: auto;
|
||||
baseline-shift: auto;
|
||||
text-edge: auto;
|
||||
leading-trim: auto;
|
||||
inline-sizing: auto;
|
||||
initial-letters: auto;
|
||||
initial-letters-align: auto;
|
||||
initial-letters-wrap: auto;
|
||||
initial-letter: auto;
|
||||
initial-letter-align: auto;
|
||||
initial-letter-wrap: auto;
|
||||
display: mathematical;
|
||||
display: central;
|
||||
display: ideographic;
|
||||
display: leading;
|
||||
display: cap;
|
||||
display: ex;
|
||||
display: ideographic-ink;
|
||||
display: drop;
|
||||
display: raise;
|
||||
}
|
||||
|
||||
.layout-api-1 {
|
||||
@@ -600,12 +608,13 @@ mask {
|
||||
}
|
||||
|
||||
.overflow-3 {
|
||||
max-lines: auto;
|
||||
block-overflow: auto;
|
||||
line-clamp: auto;
|
||||
continue: auto;
|
||||
overflow-clip-margin: auto;
|
||||
overflow-block: auto;
|
||||
overflow-inline: auto;
|
||||
block-ellipsis: auto;
|
||||
line-clamp: auto;
|
||||
max-lines: auto;
|
||||
continue: auto;
|
||||
}
|
||||
|
||||
.overflow-4::nth-fragment(1) {
|
||||
@@ -1129,6 +1138,11 @@ view {
|
||||
display: underscore;
|
||||
}
|
||||
|
||||
.unofficials {
|
||||
backdrop-filter: auto;
|
||||
display: env(safe-area-inset-top, 20px);
|
||||
}
|
||||
|
||||
.values-3 {
|
||||
display: 1ch;
|
||||
display: 1q;
|
||||
@@ -1146,6 +1160,23 @@ view {
|
||||
display: max(0, 1);
|
||||
display: clamp(0, 100, 2);
|
||||
display: toggle(italic, normal);
|
||||
display: round(var(--width), 50px);
|
||||
display: mod(-18px, 5px);
|
||||
display: rem(-18px, 5px);
|
||||
display: sin(45deg);
|
||||
display: cos(1);
|
||||
display: tan(1);
|
||||
display: asin(45deg);
|
||||
display: acos(1);
|
||||
display: atan(1);
|
||||
display: atan2(1, -1);
|
||||
display: pow(1.5, -1);
|
||||
display: sqrt(4);
|
||||
display: hypot(30px, 40px);
|
||||
display: log(10);
|
||||
display: exp(1);
|
||||
display: abs(-1);
|
||||
display: sign(-4);
|
||||
}
|
||||
|
||||
.variables-1 {
|
||||
|
||||
Reference in New Issue
Block a user