mirror of
https://github.com/hail2u/vim-css3-syntax.git
synced 2025-12-06 10:44:23 +08:00
Compare commits
73 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
213ac91578 | ||
|
|
bbfd67f785 | ||
|
|
0e25532d8a | ||
|
|
e74a5c6940 | ||
|
|
47f59169c0 | ||
|
|
cdbc9512db | ||
|
|
cb426f77cf | ||
|
|
4cabff16d6 | ||
|
|
18d867b3b1 | ||
|
|
0b4b3219e1 | ||
|
|
be159483e9 | ||
|
|
fcb88f2110 | ||
|
|
1baaddd039 | ||
|
|
c1dc0b4c7c | ||
|
|
6ea52b468a | ||
|
|
5a004b69ad | ||
|
|
750667a312 | ||
|
|
ab5722664a | ||
|
|
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 | ||
|
|
11c2d059f0 | ||
|
|
4c478d0373 | ||
|
|
e5e2662f56 | ||
|
|
4f0f6717cf | ||
|
|
5e9d081260 | ||
|
|
77a3fb8386 | ||
|
|
2c75d94fc8 | ||
|
|
a916d1e5d2 | ||
|
|
6e2f05fb29 | ||
|
|
6a677287df | ||
|
|
2714472120 | ||
|
|
ab4ce39f68 | ||
|
|
de8b85301d | ||
|
|
0c33e55d36 | ||
|
|
2a59a029d1 | ||
|
|
036ac88f82 | ||
|
|
7e863a82ba | ||
|
|
5f1c2f4cfe | ||
|
|
24df990311 | ||
|
|
2017ababce | ||
|
|
9caf119a57 | ||
|
|
c61637cc7a | ||
|
|
d852533256 | ||
|
|
6f5b17688c | ||
|
|
d65cd9c88e | ||
|
|
107e3bd060 |
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,9 +0,0 @@
|
||||
syn match cssBoxProp contained "\<margin-trim\>"
|
||||
syn match cssBoxAttr contained "\<in-flow\>"
|
||||
" These will be moved to block-3
|
||||
syn match cssBoxProp contained "\<clear-after\>"
|
||||
syn match cssBoxProp contained "\<float-displace\>"
|
||||
syn match cssBoxProp contained "\<indent-edge-reset\>"
|
||||
syn keyword cssBoxAttr contained scrollbar panner marquee decendants
|
||||
syn match cssBoxAttr contained "\<block-within-page\>"
|
||||
syn match cssBoxAttr contained "\<\(margin\|border\|padding\|content\)-edge\>"
|
||||
|
||||
2
after/syntax/css/box-4.vim
Normal file
2
after/syntax/css/box-4.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
syn match cssBoxProp contained "\<margin-trim\>"
|
||||
syn match cssBoxAttr contained "\<in-flow\>"
|
||||
@@ -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
after/syntax/css/color-5.vim
Normal file
1
after/syntax/css/color-5.vim
Normal file
@@ -0,0 +1 @@
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(color-\(mix\|contrast\|adjust\)\|red\|green\|blue\|alpha\|hue\|saturation\|lightness\|whiteness\|blackness\|a\|b\|chroma\)\s*(" end=")" contains=cssCustomProp,cssFunction,cssColor,cssFunctionComma oneline
|
||||
@@ -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
after/syntax/css/conditional-4.vim
Normal file
0
after/syntax/css/conditional-4.vim
Normal file
@@ -0,0 +1 @@
|
||||
syn match cssFontProp contained "\<content-visibility\>"
|
||||
|
||||
@@ -1,16 +1,19 @@
|
||||
syn match cssFontProp contained "\<font-synthesis\(-\(weight\|style\|small-caps\|settings\)\)\=\>"
|
||||
syn match cssFontProp contained "\<font-named-instance\>"
|
||||
syn match cssFontProp contained "\<font-display\>"
|
||||
syn match cssFontProp contained "\<\(ascent\|descent\|line-gap\)-override\>"
|
||||
syn match cssFontProp contained "\<font-optical-sizing\>"
|
||||
syn match cssFontProp contained "\<font-variation-settings\>"
|
||||
syn match cssFontProp contained "\<font-palette\>"
|
||||
syn match cssFontProp contained "\<font-variant-emoji\>"
|
||||
syn match cssFontProp contained "\<font-presentation\>"
|
||||
syn match cssFontProp contained "\<base-palette\>"
|
||||
syn match cssFontProp contained "\<override-color\>"
|
||||
syn match cssFontProp contained "\<font-variant-emoji\>"
|
||||
syn keyword cssFontAttr contained emoji math fangsong infinity swap fallback optional light dark
|
||||
syn keyword cssFontAttr contained emoji math fangsong swap fallback light dark
|
||||
syn match cssFontAttr contained "\<system-ui\>"
|
||||
syn match cssFontAttr contained "\<ui-\(\(sans-\)\=serif\|monospace\|rounded\)\>"
|
||||
syn match cssFontAttr contained "\<historical-forms\>"
|
||||
syn match cssFontAttr contained "\<xxx-large\>"
|
||||
syn match cssFontAttr contained "\<historical-forms\>"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(stylistic\|styleset\|character-variant\|swash\|ornaments\|annotation\)\s*(" end=")" oneline keepend
|
||||
" syn match cssFontDescriptor "@font-feature-values\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
||||
syn match cssFontDescriptor "@font-feature-values\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
||||
syn match cssFontDescriptor "@font-palette-values\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
||||
|
||||
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,6 +1,6 @@
|
||||
syn match cssFontProp contained "\<object-\(fit\|position\)\>"
|
||||
syn match cssFontProp contained "\<image-orientation\>"
|
||||
syn keyword cssFontAttr contained snap flip
|
||||
syn keyword cssFontAttr contained snap flip pixelated
|
||||
syn match cssFontAttr contained "\<scale-down\>"
|
||||
syn match cssFontAttr contained "\<from-image\>"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(repeating-\(linear\|radial\)-gradient\)\s*(" end=")" oneline keepend
|
||||
|
||||
@@ -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 match cssFontProp contained "\<\(\(min\|max\)-\)\=\(block\|inline\)-size\>"
|
||||
syn match cssFontProp contained "\<\(margin\|inset\|padding\)\(-\(block\|inline\)\(-\(start\|end\)\)\=\)\=\>"
|
||||
syn match cssFontProp contained "\<\(margin\|padding\)\(-\(block\|inline\)\(-\(start\|end\)\)\=\)\=\>"
|
||||
syn match cssFontProp contained "\<border-\(block\|inline\)\(\(-\(start\|end\)\)\=\(-\(width\|style\|color\)\)\=\)\=\>"
|
||||
syn match cssFontProp contained "\<border-\(start\|end\)-\(start\|end\)-radius\>"
|
||||
syn keyword cssFontAttr contained logical physical rotate
|
||||
|
||||
@@ -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 cssFontProp contained "\<offset-\(before\|end\|after\|start\)\>"
|
||||
syn match cssFontProp contained "\<inset\(-\(block\|inline\)\(-\(start\|end\)\)\=\)\=\>"
|
||||
syn keyword cssFontAttr contained sticky
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
syn match cssPseudoClassId contained "\<inactive-selection\>"
|
||||
syn match cssPseudoClassId contained "\<target-text\>"
|
||||
syn match cssPseudoClassId contained "\<\(spelling\|grammer\)-error\>"
|
||||
syn match cssPseudoClassId contained "\<file-selectors-button\>"
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
" TODO: create cssRubyProp group and cssRubyAttr group
|
||||
syn match cssFontProp contained "\<ruby-\(position\|merge\|align\)"
|
||||
syn match cssFontProp contained "\<ruby-\(position\|merge\|align\|overhang\)"
|
||||
syn match cssFontAttr contained "\<ruby-\(base\|text\)-container\>"
|
||||
syn match cssFontAttr contained "\<inter-character\>"
|
||||
|
||||
1
after/syntax/css/scrollbars-1.vim
Normal file
1
after/syntax/css/scrollbars-1.vim
Normal file
@@ -0,0 +1 @@
|
||||
syn match cssFontProp contained "\<scrollbar-\(color\|width\)\>"
|
||||
2
after/syntax/css/sizing-4.vim
Normal file
2
after/syntax/css/sizing-4.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
syn match cssFontProp contained "\<contain-intrinsic-size\>"
|
||||
syn match cssFontAttr contained "\<\fit-content\>"
|
||||
6
after/syntax/css/speech-1.vim
Normal file
6
after/syntax/css/speech-1.vim
Normal file
@@ -0,0 +1,6 @@
|
||||
syn match cssAuralProp contained "\<voice-\(volume\|balance\|rate\|pitch\|range\|stress\|duration\)\>"
|
||||
syn match cssAuralProp contained "\<rest\(-\(before\|after\)\)\=\>"
|
||||
syn keyword cssAuralAttr contained young old neutral preserve moderate reduced
|
||||
syn match cssAuralAttr contained "\<\(literal\|no\)-punctuation\>"
|
||||
syn match cssAuralAttr contained "\<\(x-\)\=\(weak\|strong\)\>"
|
||||
syn match cssValueNumber contained "[-+]\=\d\+\(dB\|st\)"
|
||||
@@ -1,4 +1,6 @@
|
||||
syn match cssTextProp contained "\<text-\(decoration-\(width\|skip\|skip-ink\)\|underline-offset\|emphasis-skip\)\>"
|
||||
syn match cssTextProp contained "\<text-\(decoration-\(thickness\|skip\|skip-ink\)\|underline-offset\|emphasis-skip\)\>"
|
||||
syn keyword cssTextAttr contained objects edges symbols narrow
|
||||
syn match cssTextAttr contained "\<box-decoration\>"
|
||||
syn match cssTextAttr contained "\<\(spelling\|grammer\)-error\>"
|
||||
syn match cssTextAttr contained "\<from-font\>"
|
||||
syn match cssTextAttr contained "\<\(\(leading\|trailing\)-\)\=spaces\>"
|
||||
syn match cssTextAttr contained "\<box-decoration\>"
|
||||
|
||||
2
after/syntax/css/transforms-2.vim
Normal file
2
after/syntax/css/transforms-2.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
syn keyword cssFontProp contained rotate scale translate
|
||||
syn keyword cssFontAttr contained flat
|
||||
2
after/syntax/css/unofficials.vim
Normal file
2
after/syntax/css/unofficials.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
syn match cssFontProp contained "\<backdrop-filter\>"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<env\s*(" end=")" oneline keepend
|
||||
@@ -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
|
||||
|
||||
1561
test/test.css
1561
test/test.css
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user