Mercurial > ec-dotfiles
comparison vendor/vim-syntax/css.vim @ 726:78469331407e
Update syntaxes
| author | nanaya <me@nanaya.net> |
|---|---|
| date | Mon, 19 Aug 2024 17:04:13 +0900 |
| parents | 6cdd7d26260d |
| children |
comparison
equal
deleted
inserted
replaced
| 725:0a896ffe3029 | 726:78469331407e |
|---|---|
| 5 " Claudio Fleiner <claudio@fleiner.com> | 5 " Claudio Fleiner <claudio@fleiner.com> |
| 6 " Yeti (Add full CSS2, HTML4 support) | 6 " Yeti (Add full CSS2, HTML4 support) |
| 7 " Nikolai Weibull (Add CSS2 support) | 7 " Nikolai Weibull (Add CSS2 support) |
| 8 " URL: https://github.com/vim-language-dept/css-syntax.vim | 8 " URL: https://github.com/vim-language-dept/css-syntax.vim |
| 9 " Maintainer: Jay Sitter <jay@jaysitter.com> | 9 " Maintainer: Jay Sitter <jay@jaysitter.com> |
| 10 " Last Change: 2021 Oct 20 | 10 " Last Change: 2024 Mar 2 |
| 11 | 11 |
| 12 " quit when a syntax file was already loaded | 12 " quit when a syntax file was already loaded |
| 13 if !exists("main_syntax") | 13 if !exists("main_syntax") |
| 14 if exists("b:current_syntax") | 14 if exists("b:current_syntax") |
| 15 finish | 15 finish |
| 125 syn match cssColor contained "#\x\{6\}\>" contains=cssUnitDecorators | 125 syn match cssColor contained "#\x\{6\}\>" contains=cssUnitDecorators |
| 126 syn match cssColor contained "#\x\{8\}\>" contains=cssUnitDecorators | 126 syn match cssColor contained "#\x\{8\}\>" contains=cssUnitDecorators |
| 127 | 127 |
| 128 syn region cssURL contained matchgroup=cssFunctionName start="\<\(uri\|url\|local\|format\)\s*(" end=")" contains=cssStringQ,cssStringQQ oneline | 128 syn region cssURL contained matchgroup=cssFunctionName start="\<\(uri\|url\|local\|format\)\s*(" end=")" contains=cssStringQ,cssStringQQ oneline |
| 129 syn region cssMathGroup contained matchgroup=cssMathParens start="(" end=")" containedin=cssFunction,cssMathGroup contains=cssCustomProp,cssValue.*,cssFunction,cssColor,cssStringQ,cssStringQQ oneline | 129 syn region cssMathGroup contained matchgroup=cssMathParens start="(" end=")" containedin=cssFunction,cssMathGroup contains=cssCustomProp,cssValue.*,cssFunction,cssColor,cssStringQ,cssStringQQ oneline |
| 130 syn region cssFunction contained matchgroup=cssFunctionName start="\<\(var\|calc\)\s*(" end=")" contains=cssCustomProp,cssValue.*,cssFunction,cssColor,cssStringQ,cssStringQQ oneline | 130 syn region cssFunction contained matchgroup=cssFunctionName start="\<\(var\|calc\)\s*(" end=")" contains=cssCustomProp,cssValue.*,cssFunction,cssURL,cssColor,cssStringQ,cssStringQQ oneline |
| 131 syn region cssFunction contained matchgroup=cssFunctionName start="\<\(rgb\|clip\|attr\|counter\|rect\|cubic-bezier\|steps\)\s*(" end=")" oneline contains=cssValueInteger,cssValueNumber,cssValueLength,cssFunctionComma | 131 syn region cssFunction contained matchgroup=cssFunctionName start="\<\(rgb\|clip\|attr\|counter\|rect\|cubic-bezier\|steps\)\s*(" end=")" oneline contains=cssValueInteger,cssValueNumber,cssValueLength,cssFunctionComma |
| 132 syn region cssFunction contained matchgroup=cssFunctionName start="\<\(rgba\|hsl\|hsla\|color-stop\|from\|to\)\s*(" end=")" oneline contains=cssColor,cssValueInteger,cssValueNumber,cssValueLength,cssFunctionComma,cssFunction | 132 syn region cssFunction contained matchgroup=cssFunctionName start="\<\(rgba\|hsl\|hsla\|color-stop\|from\|to\)\s*(" end=")" oneline contains=cssColor,cssValueInteger,cssValueNumber,cssValueLength,cssFunctionComma,cssFunction |
| 133 syn region cssFunction contained matchgroup=cssFunctionName start="\<\(linear-\|radial-\|conic-\)\=\gradient\s*(" end=")" oneline contains=cssColor,cssValueInteger,cssValueNumber,cssValueLength,cssFunction,cssGradientAttr,cssFunctionComma | 133 syn region cssFunction contained matchgroup=cssFunctionName start="\<\(linear-\|radial-\|conic-\)\=\gradient\s*(" end=")" oneline contains=cssColor,cssValueInteger,cssValueNumber,cssValueLength,cssFunction,cssGradientAttr,cssFunctionComma |
| 134 syn region cssFunction contained matchgroup=cssFunctionName start="\<\(matrix\(3d\)\=\|scale\(3d\|X\|Y\|Z\)\=\|translate\(3d\|X\|Y\|Z\)\=\|skew\(X\|Y\)\=\|rotate\(3d\|X\|Y\|Z\)\=\|perspective\)\s*(" end=")" oneline contains=cssValueInteger,cssValueNumber,cssValueLength,cssValueAngle,cssFunctionComma | 134 syn region cssFunction contained matchgroup=cssFunctionName start="\<\(matrix\(3d\)\=\|scale\(3d\|X\|Y\|Z\)\=\|translate\(3d\|X\|Y\|Z\)\=\|skew\(X\|Y\)\=\|rotate\(3d\|X\|Y\|Z\)\=\|perspective\)\s*(" end=")" oneline contains=cssValueInteger,cssValueNumber,cssValueLength,cssValueAngle,cssFunctionComma |
| 135 syn region cssFunction contained matchgroup=cssFunctionName start="\<\(blur\|brightness\|contrast\|drop-shadow\|grayscale\|hue-rotate\|invert\|opacity\|saturate\|sepia\)\s*(" end=")" oneline contains=cssValueInteger,cssValueNumber,cssValueLength,cssValueAngle,cssFunctionComma | 135 syn region cssFunction contained matchgroup=cssFunctionName start="\<\(blur\|brightness\|contrast\|drop-shadow\|grayscale\|hue-rotate\|invert\|opacity\|saturate\|sepia\)\s*(" end=")" oneline contains=cssValueInteger,cssValueNumber,cssValueLength,cssValueAngle,cssFunctionComma |
| 174 " background-size attributes | 174 " background-size attributes |
| 175 syn keyword cssBackgroundAttr contained cover contain | 175 syn keyword cssBackgroundAttr contained cover contain |
| 176 | 176 |
| 177 syn match cssBorderProp contained "\<border\(-\(top\|right\|bottom\|left\)\)\=\(-\(width\|color\|style\)\)\=\>" | 177 syn match cssBorderProp contained "\<border\(-\(top\|right\|bottom\|left\)\)\=\(-\(width\|color\|style\)\)\=\>" |
| 178 syn match cssBorderProp contained "\<border\(-\(top\|bottom\)-\(left\|right\)\)\=-radius\>" | 178 syn match cssBorderProp contained "\<border\(-\(top\|bottom\)-\(left\|right\)\)\=-radius\>" |
| 179 syn match cssBorderProp contained "\<border-\(inline\|block\)\(-\(start\|end\)\)\=\(-\(style\|width\|color\)\)\=\>" | |
| 180 syn match cssBorderProp contained "\<border-\(start\|end\)-\(start\|end\)-radius\>" | |
| 179 syn match cssBorderProp contained "\<border-image\(-\(outset\|repeat\|slice\|source\|width\)\)\=\>" | 181 syn match cssBorderProp contained "\<border-image\(-\(outset\|repeat\|slice\|source\|width\)\)\=\>" |
| 180 syn match cssBorderProp contained "\<box-decoration-break\>" | 182 syn match cssBorderProp contained "\<box-decoration-break\>" |
| 181 syn match cssBorderProp contained "\<box-shadow\>" | 183 syn match cssBorderProp contained "\<box-shadow\>" |
| 182 | 184 |
| 183 " border-image attributes | 185 " border-image attributes |
| 193 syn keyword cssBorderAttr contained clone slice | 195 syn keyword cssBorderAttr contained clone slice |
| 194 "------------------------------------------------ | 196 "------------------------------------------------ |
| 195 | 197 |
| 196 syn match cssBoxProp contained "\<padding\(-\(top\|right\|bottom\|left\)\)\=\>" | 198 syn match cssBoxProp contained "\<padding\(-\(top\|right\|bottom\|left\)\)\=\>" |
| 197 syn match cssBoxProp contained "\<margin\(-\(top\|right\|bottom\|left\)\)\=\>" | 199 syn match cssBoxProp contained "\<margin\(-\(top\|right\|bottom\|left\)\)\=\>" |
| 200 syn match cssBoxProp contained "\<\(margin\|padding\)\(-\(inline\|block\)\(-\(start\|end\)\)\)\=\>" | |
| 198 syn match cssBoxProp contained "\<overflow\(-\(x\|y\|style\)\)\=\>" | 201 syn match cssBoxProp contained "\<overflow\(-\(x\|y\|style\)\)\=\>" |
| 199 syn match cssBoxProp contained "\<rotation\(-point\)\=\>" | 202 syn match cssBoxProp contained "\<rotation\(-point\)\=\>" |
| 200 syn keyword cssBoxAttr contained visible hidden scroll auto | 203 syn keyword cssBoxAttr contained visible hidden scroll auto |
| 201 syn match cssBoxAttr contained "\<no-\(display\|content\)\>" | 204 syn match cssBoxAttr contained "\<no-\(display\|content\)\>" |
| 202 | 205 |
| 225 syn match cssFlexibleBoxAttr contained "\<flex\(-\(start\|end\)\)\=\>" | 228 syn match cssFlexibleBoxAttr contained "\<flex\(-\(start\|end\)\)\=\>" |
| 226 syn match cssFlexibleBoxAttr contained "\<space\(-\(between\|around\|evenly\)\)\=\>" | 229 syn match cssFlexibleBoxAttr contained "\<space\(-\(between\|around\|evenly\)\)\=\>" |
| 227 | 230 |
| 228 " CSS Fonts Module Level 3 | 231 " CSS Fonts Module Level 3 |
| 229 " http://www.w3.org/TR/css-fonts-3/ | 232 " http://www.w3.org/TR/css-fonts-3/ |
| 230 syn match cssFontProp contained "\<font\(-\(family\|\|feature-settings\|kerning\|language-override\|size\(-adjust\)\=\|stretch\|style\|synthesis\|variant\(-\(alternates\|caps\|east-asian\|ligatures\|numeric\|position\)\)\=\|weight\)\)\=\>" | 233 syn match cssFontProp contained "\<font\(-\(display\|family\|feature-settings\|kerning\|language-override\|size\(-adjust\)\=\|stretch\|style\|synthesis\|variant\(-\(alternates\|caps\|east-asian\|ligatures\|numeric\|position\)\)\=\|weight\)\)\=\>" |
| 231 | 234 |
| 232 " font attributes | 235 " font attributes |
| 233 syn keyword cssFontAttr contained icon menu caption | 236 syn keyword cssFontAttr contained icon menu caption |
| 234 syn match cssFontAttr contained "\<message-box\>" | 237 syn match cssFontAttr contained "\<message-box\>" |
| 235 syn match cssFontAttr contained "\<status-bar\>" | 238 syn match cssFontAttr contained "\<status-bar\>" |
| 246 syn keyword cssFontAttr contained italic oblique | 249 syn keyword cssFontAttr contained italic oblique |
| 247 " font-synthesis attributes | 250 " font-synthesis attributes |
| 248 syn keyword cssFontAttr contained weight style | 251 syn keyword cssFontAttr contained weight style |
| 249 " font-weight attributes | 252 " font-weight attributes |
| 250 syn keyword cssFontAttr contained bold bolder lighter | 253 syn keyword cssFontAttr contained bold bolder lighter |
| 254 " font-display attributes | |
| 255 syn keyword cssFontAttr contained auto block swap fallback optional | |
| 251 " TODO: font-variant-* attributes | 256 " TODO: font-variant-* attributes |
| 252 "------------------------------------------------ | 257 "------------------------------------------------ |
| 253 | 258 |
| 254 " Webkit specific property/attributes | 259 " Webkit specific property/attributes |
| 255 syn match cssFontProp contained "\<font-smooth\>" | 260 syn match cssFontProp contained "\<font-smooth\>" |
| 280 syn match cssGeneratedContentAttr contained "\<\(no-\)\=\(open\|close\)-quote\>" | 285 syn match cssGeneratedContentAttr contained "\<\(no-\)\=\(open\|close\)-quote\>" |
| 281 | 286 |
| 282 " https://www.w3.org/TR/css-grid-1/ | 287 " https://www.w3.org/TR/css-grid-1/ |
| 283 syn match cssGridProp contained "\<grid\>" | 288 syn match cssGridProp contained "\<grid\>" |
| 284 syn match cssGridProp contained "\<grid-template\(-\(columns\|rows\|areas\)\)\=\>" | 289 syn match cssGridProp contained "\<grid-template\(-\(columns\|rows\|areas\)\)\=\>" |
| 285 syn match cssGridProp contained "\<grid-\(column\|row\)\(-\(start\|end\|gap\)\)\=\>" | 290 syn match cssGridProp contained "\<\(grid-\)\=\(column\|row\)\(-\(start\|end\|gap\)\)\=\>" |
| 286 syn match cssGridProp contained "\<grid-\(area\|gap\)\>" | 291 syn match cssGridProp contained "\<grid-\(area\|gap\)\>" |
| 287 syn match cssGridProp contained "\<gap\>" | 292 syn match cssGridProp contained "\<gap\>" |
| 288 syn match cssGridProp contained "\<grid-auto-\(flow\|rows\|columns\)\>" | 293 syn match cssGridProp contained "\<grid-auto-\(flow\|rows\|columns\)\>" |
| 289 | 294 |
| 290 syn match cssHyerlinkProp contained "\<target\(-\(name\|new\|position\)\)\=\>" | 295 syn match cssHyerlinkProp contained "\<target\(-\(name\|new\|position\)\)\=\>" |
