mirror of
https://github.com/hail2u/vim-css3-syntax.git
synced 2025-12-06 18:54:25 +08:00
Compare commits
63 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e5e2662f56 | ||
|
|
4f0f6717cf | ||
|
|
5e9d081260 | ||
|
|
77a3fb8386 | ||
|
|
2c75d94fc8 | ||
|
|
a916d1e5d2 | ||
|
|
6e2f05fb29 | ||
|
|
6a677287df | ||
|
|
2714472120 | ||
|
|
ab4ce39f68 | ||
|
|
de8b85301d | ||
|
|
0c33e55d36 | ||
|
|
2a59a029d1 | ||
|
|
036ac88f82 | ||
|
|
7e863a82ba | ||
|
|
5f1c2f4cfe | ||
|
|
24df990311 | ||
|
|
2017ababce | ||
|
|
9caf119a57 | ||
|
|
c61637cc7a | ||
|
|
d852533256 | ||
|
|
6f5b17688c | ||
|
|
d65cd9c88e | ||
|
|
107e3bd060 | ||
|
|
c975bde063 | ||
|
|
69b55bf234 | ||
|
|
241f57e057 | ||
|
|
14f6b95d25 | ||
|
|
f483738520 | ||
|
|
6253d1b746 | ||
|
|
75322b91a1 | ||
|
|
496f27aaf3 | ||
|
|
dcd7e3dca8 | ||
|
|
8aee9a339d | ||
|
|
c1f03abe28 | ||
|
|
81364390d3 | ||
|
|
70cb73d4d8 | ||
|
|
cf953ffa27 | ||
|
|
1e61ba9b5d | ||
|
|
e4f8096b95 | ||
|
|
ba724e7725 | ||
|
|
037c11a418 | ||
|
|
6c4e888d30 | ||
|
|
ac5da79ba0 | ||
|
|
9f8026cdc7 | ||
|
|
0c7d58818c | ||
|
|
7eaca88c16 | ||
|
|
cfaa56b81b | ||
|
|
d467649124 | ||
|
|
c67661a5df | ||
|
|
566c51cc9e | ||
|
|
d733704733 | ||
|
|
c9c7ec3896 | ||
|
|
bdfc1fde87 | ||
|
|
29ade81400 | ||
|
|
c5ea01f581 | ||
|
|
a383e34b23 | ||
|
|
a0d55ac3aa | ||
|
|
dc7b427e5b | ||
|
|
22c5e8078d | ||
|
|
84c88ac746 | ||
|
|
af915e056e | ||
|
|
547e1de69f |
@@ -89,7 +89,7 @@ Kyo Nagashima <hail2u@gmail.com> (https://kyonagashima.com/)
|
||||
LICENSE
|
||||
-------
|
||||
|
||||
MIT: http://hail2u.mit-license.org/2011
|
||||
MIT License
|
||||
|
||||
|
||||
[1]: http://www.vim.org/
|
||||
|
||||
0
after/syntax/css/animation-worklet-1.vim
Normal file
0
after/syntax/css/animation-worklet-1.vim
Normal file
@@ -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,2 +0,0 @@
|
||||
syn keyword cssFontProp all
|
||||
syn keyword cssCommonAttr contained initial unset
|
||||
|
||||
@@ -1,2 +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 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
|
||||
0
after/syntax/css/conditional-4.vim
Normal file
0
after/syntax/css/conditional-4.vim
Normal file
0
after/syntax/css/contain-2.vim
Normal file
0
after/syntax/css/contain-2.vim
Normal file
@@ -1,3 +1,2 @@
|
||||
syn keyword cssFontAttr contained contents discard
|
||||
syn match cssFontAttr contained "\<flow\(-root\)\=\>"
|
||||
syn match cssBoxAttr contained "\<ruby\(-\(base\(-group\)\=\|text\(-group\)\=\)\)\=\>"
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
syn match cssFontProp contained "\<font-\(min\|max\)-size\>"
|
||||
syn match cssFontProp contained "\<font-display\>"
|
||||
syn match cssFontProp contained "\<font-optical-sizing\>"
|
||||
syn match cssFontProp contained "\<font-variation-settings\>"
|
||||
@@ -9,7 +8,9 @@ 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 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 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-palette-values\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
syn match cssFontProp contained "\<grid-template\>"
|
||||
syn keyword cssFontAttr contained dense span
|
||||
syn match cssFontAttr contained "\<auto-flow\>"
|
||||
syn match cssValueNumber contained "[01]\(.\d\+\)\=fr"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(minmax\|repeat\)\s*(" end=")" oneline keepend
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
syn match cssValueNumber contained "\d\(.\d\+\)\=ar"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
syn match cssFontProp contained "\<object-\(fit\|position\)\>"
|
||||
syn match cssFontProp contained "\<image-orientation\>"
|
||||
syn keyword cssFontAttr contained snap
|
||||
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,3 +1,4 @@
|
||||
" WD-css-lists-3-20190817
|
||||
syn match cssGeneratedContentProp contained "\<marker-side\>"
|
||||
syn match cssGeneratedContentProp contained "\<counter-set\>"
|
||||
syn keyword cssGeneratedContentAttr contained marker
|
||||
|
||||
@@ -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,2 +1,2 @@
|
||||
syn match cssFontProp contained "\<spatial-navigation-\(action\|contain\)\>"
|
||||
syn match cssFontProp contained "\<spatial-navigation-\(action\|contain\|function\)\>"
|
||||
syn keyword cssFontAttr contained focus
|
||||
|
||||
1
after/syntax/css/overscroll-1.vim
Normal file
1
after/syntax/css/overscroll-1.vim
Normal file
@@ -0,0 +1 @@
|
||||
syn match cssFontProp contained "\<overscroll-behavior\(-\(block\|inline\|x\|y\)\)\=\>"
|
||||
@@ -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
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
syn keyword cssFontProp contained syntax inherits
|
||||
syn match cssFontProp contained "\<initial-value\>"
|
||||
|
||||
0
after/syntax/css/resize-observer-1.vim
Normal file
0
after/syntax/css/resize-observer-1.vim
Normal file
@@ -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/scroll-anchoring-1.vim
Normal file
1
after/syntax/css/scroll-anchoring-1.vim
Normal file
@@ -0,0 +1 @@
|
||||
syn match cssFontProp contained "\<overflow-anchor\>"
|
||||
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,9 +1,6 @@
|
||||
syn keyword cssTextProp contained hyphens
|
||||
syn match cssTextProp contained "\<line-break\>"
|
||||
syn match cssTextProp contained "\<overflow-wrap\>"
|
||||
syn match cssTextProp contained "\<tab-size\>"
|
||||
syn match cssTextProp contained "\<text-align-all\>"
|
||||
syn keyword cssTextAttr contained manual loose strict hanging anywhere
|
||||
syn keyword cssTextAttr contained loose strict hanging anywhere
|
||||
syn match cssTextAttr contained "\<match-parent\>"
|
||||
syn match cssTextAttr contained "\<each-line\>"
|
||||
syn match cssTextAttr contained "\<full-width\>"
|
||||
|
||||
@@ -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,3 +1,2 @@
|
||||
syn match cssValueLength contained "[-+]\=\d\+\(\.\d*\)\=\(ch\|vw\|vh\|vmin\|vmax\|q\)"
|
||||
syn match cssValueLength contained "[-+]\=\d\+\(\.\d*\)\=\(ch\|q\)"
|
||||
syn match cssValueAngle contained "[-+]\=\d\+\(\.\d*\)\=turn"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<calc\s*(" end=")" oneline keepend
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
syn match cssFontProp contained "\<--[A-Za-z_][A-Za-z0-9_-]\+\>"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<var\s*(" end=")" oneline keepend
|
||||
|
||||
1520
test/test.css
1520
test/test.css
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user