2014-07-10 21:05:51 -07:00
|
|
|
" Vim syntax file
|
|
|
|
" Language: Cascading Style Sheets
|
|
|
|
" Previous Contributor List:
|
2021-04-29 15:34:49 -07:00
|
|
|
" Jules Wang <w.jq0722@gmail.com>
|
2014-07-10 21:05:51 -07:00
|
|
|
" Claudio Fleiner <claudio@fleiner.com> (Maintainer)
|
|
|
|
" Yeti (Add full CSS2, HTML4 support)
|
|
|
|
" Nikolai Weibull (Add CSS2 support)
|
2021-04-29 15:34:49 -07:00
|
|
|
" URL: https://github.com/jsit/css.vim
|
|
|
|
" Maintainer: Jay Sitter <jay@jaysitter.com>
|
2019-09-06 18:35:17 -07:00
|
|
|
" Last Change: 2019 Jul. 29
|
2014-07-10 21:05:51 -07:00
|
|
|
|
2017-04-28 12:06:44 -07:00
|
|
|
" quit when a syntax file was already loaded
|
2014-07-10 21:05:51 -07:00
|
|
|
if !exists("main_syntax")
|
2017-04-28 12:06:44 -07:00
|
|
|
if exists("b:current_syntax")
|
2014-07-10 21:05:51 -07:00
|
|
|
finish
|
|
|
|
endif
|
|
|
|
let main_syntax = 'css'
|
|
|
|
elseif exists("b:current_syntax") && b:current_syntax == "css"
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
|
|
|
|
let s:cpo_save = &cpo
|
|
|
|
set cpo&vim
|
|
|
|
|
|
|
|
syn case ignore
|
|
|
|
|
2015-11-08 04:21:27 -07:00
|
|
|
" HTML4 tags
|
|
|
|
syn keyword cssTagName abbr address area a b base
|
|
|
|
syn keyword cssTagName bdo blockquote body br button
|
|
|
|
syn keyword cssTagName caption cite code col colgroup dd del
|
|
|
|
syn keyword cssTagName dfn div dl dt em fieldset form
|
|
|
|
syn keyword cssTagName h1 h2 h3 h4 h5 h6 head hr html img i
|
|
|
|
syn keyword cssTagName iframe input ins isindex kbd label legend li
|
|
|
|
syn keyword cssTagName link map menu meta noscript ol optgroup
|
|
|
|
syn keyword cssTagName option p param pre q s samp script small
|
|
|
|
syn keyword cssTagName span strong sub sup tbody td
|
|
|
|
syn keyword cssTagName textarea tfoot th thead title tr ul u var
|
2014-07-10 21:05:51 -07:00
|
|
|
syn keyword cssTagName object svg
|
2015-11-08 04:21:27 -07:00
|
|
|
syn match cssTagName /\<select\>\|\<style\>\|\<table\>/
|
2014-07-10 21:05:51 -07:00
|
|
|
|
|
|
|
" 34 HTML5 tags
|
|
|
|
syn keyword cssTagName article aside audio bdi canvas command data
|
|
|
|
syn keyword cssTagName datalist details dialog embed figcaption figure footer
|
|
|
|
syn keyword cssTagName header hgroup keygen main mark menuitem meter nav
|
|
|
|
syn keyword cssTagName output progress rt rp ruby section
|
|
|
|
syn keyword cssTagName source summary time track video wbr
|
|
|
|
|
|
|
|
" Tags not supported in HTML5
|
2015-11-08 04:21:27 -07:00
|
|
|
" acronym applet basefont big center dir
|
|
|
|
" font frame frameset noframes strike tt
|
2014-07-10 21:05:51 -07:00
|
|
|
|
|
|
|
syn match cssTagName "\*"
|
|
|
|
|
|
|
|
" selectors
|
|
|
|
syn match cssSelectorOp "[,>+~]"
|
|
|
|
syn match cssSelectorOp2 "[~|^$*]\?=" contained
|
|
|
|
syn region cssAttributeSelector matchgroup=cssSelectorOp start="\[" end="]" contains=cssUnicodeEscape,cssSelectorOp2,cssStringQ,cssStringQQ
|
|
|
|
|
|
|
|
" .class and #id
|
2017-05-01 04:15:27 -07:00
|
|
|
syn match cssClassName "\.-\=[A-Za-z_][A-Za-z0-9_-]*" contains=cssClassNameDot
|
2014-07-10 21:05:51 -07:00
|
|
|
syn match cssClassNameDot contained '\.'
|
|
|
|
|
|
|
|
try
|
2021-05-01 11:08:45 -07:00
|
|
|
syn match cssIdentifier "#[A-Za-zÀ-ÿ_@][A-Za-zÀ-ÿ0-9_@-]*"
|
2014-07-10 21:05:51 -07:00
|
|
|
catch /^.*/
|
|
|
|
syn match cssIdentifier "#[A-Za-z_@][A-Za-z0-9_@-]*"
|
|
|
|
endtry
|
|
|
|
|
|
|
|
" digits
|
|
|
|
syn match cssValueInteger contained "[-+]\=\d\+" contains=cssUnitDecorators
|
|
|
|
syn match cssValueNumber contained "[-+]\=\d\+\(\.\d*\)\=" contains=cssUnitDecorators
|
2021-04-29 15:34:49 -07:00
|
|
|
syn match cssValueLength contained "[-+]\=\d\+\(\.\d*\)\=\(mm\|cm\|in\|pt\|pc\|em\|ex\|px\|rem\|dpi\|dppx\|dpcm\|fr\|vw\|vh\|vmin\|vmax\|ch\)\>" contains=cssUnitDecorators
|
2018-10-28 06:09:49 -07:00
|
|
|
syn match cssValueLength contained "[-+]\=\d\+\(\.\d*\)\=%" contains=cssUnitDecorators
|
2015-11-08 04:21:27 -07:00
|
|
|
syn match cssValueAngle contained "[-+]\=\d\+\(\.\d*\)\=\(deg\|grad\|rad\)\>" contains=cssUnitDecorators
|
|
|
|
syn match cssValueTime contained "+\=\d\+\(\.\d*\)\=\(ms\|s\)\>" contains=cssUnitDecorators
|
|
|
|
syn match cssValueFrequency contained "+\=\d\+\(\.\d*\)\=\(Hz\|kHz\)\>" contains=cssUnitDecorators
|
2014-07-10 21:05:51 -07:00
|
|
|
|
|
|
|
" The 16 basic color names
|
|
|
|
syn keyword cssColor contained aqua black blue fuchsia gray green lime maroon navy olive purple red silver teal yellow
|
|
|
|
|
|
|
|
" 130 more color names
|
|
|
|
syn keyword cssColor contained aliceblue antiquewhite aquamarine azure
|
|
|
|
syn keyword cssColor contained beige bisque blanchedalmond blueviolet brown burlywood
|
|
|
|
syn keyword cssColor contained cadetblue chartreuse chocolate coral cornflowerblue cornsilk crimson cyan
|
2015-11-08 04:21:27 -07:00
|
|
|
syn match cssColor contained /\<dark\(blue\|cyan\|goldenrod\|gray\|green\|grey\|khaki\)\>/
|
|
|
|
syn match cssColor contained /\<dark\(magenta\|olivegreen\|orange\|orchid\|red\|salmon\|seagreen\)\>/
|
|
|
|
syn match cssColor contained /\<darkslate\(blue\|gray\|grey\)\>/
|
|
|
|
syn match cssColor contained /\<dark\(turquoise\|violet\)\>/
|
2014-07-10 21:05:51 -07:00
|
|
|
syn keyword cssColor contained deeppink deepskyblue dimgray dimgrey dodgerblue firebrick
|
|
|
|
syn keyword cssColor contained floralwhite forestgreen gainsboro ghostwhite gold
|
|
|
|
syn keyword cssColor contained goldenrod greenyellow grey honeydew hotpink
|
|
|
|
syn keyword cssColor contained indianred indigo ivory khaki lavender lavenderblush lawngreen
|
|
|
|
syn keyword cssColor contained lemonchiffon limegreen linen magenta
|
2015-11-08 04:21:27 -07:00
|
|
|
syn match cssColor contained /\<light\(blue\|coral\|cyan\|goldenrodyellow\|gray\|green\)\>/
|
|
|
|
syn match cssColor contained /\<light\(grey\|pink\|salmon\|seagreen\|skyblue\|yellow\)\>/
|
|
|
|
syn match cssColor contained /\<light\(slategray\|slategrey\|steelblue\)\>/
|
|
|
|
syn match cssColor contained /\<medium\(aquamarine\|blue\|orchid\|purple\|seagreen\)\>/
|
|
|
|
syn match cssColor contained /\<medium\(slateblue\|springgreen\|turquoise\|violetred\)\>/
|
2014-07-10 21:05:51 -07:00
|
|
|
syn keyword cssColor contained midnightblue mintcream mistyrose moccasin navajowhite
|
|
|
|
syn keyword cssColor contained oldlace olivedrab orange orangered orchid
|
2015-11-08 04:21:27 -07:00
|
|
|
syn match cssColor contained /\<pale\(goldenrod\|green\|turquoise\|violetred\)\>/
|
2014-07-10 21:05:51 -07:00
|
|
|
syn keyword cssColor contained papayawhip peachpuff peru pink plum powderblue
|
2018-10-28 06:09:49 -07:00
|
|
|
syn keyword cssColor contained rosybrown royalblue rebeccapurple saddlebrown salmon
|
|
|
|
syn keyword cssColor contained sandybrown seagreen seashell sienna skyblue slateblue
|
2014-07-10 21:05:51 -07:00
|
|
|
syn keyword cssColor contained slategray slategrey snow springgreen steelblue tan
|
|
|
|
syn keyword cssColor contained thistle tomato turquoise violet wheat
|
|
|
|
syn keyword cssColor contained whitesmoke yellowgreen
|
|
|
|
|
|
|
|
" FIXME: These are actually case-insensitive too, but (a) specs recommend using
|
|
|
|
" mixed-case (b) it's hard to highlight the word `Background' correctly in
|
|
|
|
" all situations
|
|
|
|
syn case match
|
|
|
|
syn keyword cssColor contained ActiveBorder ActiveCaption AppWorkspace ButtonFace ButtonHighlight ButtonShadow ButtonText CaptionText GrayText Highlight HighlightText InactiveBorder InactiveCaption InactiveCaptionText InfoBackground InfoText Menu MenuText Scrollbar ThreeDDarkShadow ThreeDFace ThreeDHighlight ThreeDLightShadow ThreeDShadow Window WindowFrame WindowText Background
|
|
|
|
syn case ignore
|
|
|
|
|
|
|
|
syn match cssImportant contained "!\s*important\>"
|
2019-09-06 18:35:17 -07:00
|
|
|
syn match cssCustomProp contained "--[a-zA-Z0-9-_]*"
|
2014-07-10 21:05:51 -07:00
|
|
|
|
|
|
|
syn match cssColor contained "\<transparent\>"
|
2015-11-08 04:21:27 -07:00
|
|
|
syn match cssColor contained "\<currentColor\>"
|
2014-07-10 21:05:51 -07:00
|
|
|
syn match cssColor contained "\<white\>"
|
2018-10-28 06:09:49 -07:00
|
|
|
syn match cssColor contained "#\x\{3,4\}\>" contains=cssUnitDecorators
|
|
|
|
syn match cssColor contained "#\x\{6\}\>" contains=cssUnitDecorators
|
|
|
|
syn match cssColor contained "#\x\{8\}\>" contains=cssUnitDecorators
|
2014-07-10 21:05:51 -07:00
|
|
|
|
2018-10-28 06:09:49 -07:00
|
|
|
syn region cssURL contained matchgroup=cssFunctionName start="\<\(uri\|url\|local\|format\)\s*(" end=")" contains=cssStringQ,cssStringQQ oneline
|
2019-09-06 18:35:17 -07:00
|
|
|
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(var\|calc\)\s*(" end=")" contains=cssCustomProp,cssValue.*,cssFunction,cssColor,cssStringQ,cssStringQQ oneline
|
2014-07-10 21:05:51 -07:00
|
|
|
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(rgb\|clip\|attr\|counter\|rect\|cubic-bezier\|steps\)\s*(" end=")" oneline contains=cssValueInteger,cssValueNumber,cssValueLength,cssFunctionComma
|
|
|
|
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(rgba\|hsl\|hsla\|color-stop\|from\|to\)\s*(" end=")" oneline contains=cssColor,cssValueInteger,cssValueNumber,cssValueLength,cssFunctionComma,cssFunction
|
|
|
|
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(linear-\|radial-\)\=\gradient\s*(" end=")" oneline contains=cssColor,cssValueInteger,cssValueNumber,cssValueLength,cssFunction,cssGradientAttr,cssFunctionComma
|
|
|
|
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
|
2021-04-29 15:34:49 -07:00
|
|
|
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
|
2014-07-10 21:05:51 -07:00
|
|
|
syn keyword cssGradientAttr contained top bottom left right cover center middle ellipse at
|
|
|
|
syn match cssFunctionComma contained ","
|
|
|
|
|
|
|
|
" Common Prop and Attr
|
|
|
|
syn keyword cssCommonAttr contained auto none inherit all default normal
|
|
|
|
syn keyword cssCommonAttr contained top bottom center stretch hidden visible
|
2021-04-29 15:34:49 -07:00
|
|
|
syn match cssCommonAttr contained "\<\(max-\|min-\|fit-\)content\>"
|
2014-07-10 21:05:51 -07:00
|
|
|
"------------------------------------------------
|
|
|
|
" CSS Animations
|
|
|
|
" http://www.w3.org/TR/css3-animations/
|
|
|
|
syn match cssAnimationProp contained "\<animation\(-\(delay\|direction\|duration\|fill-mode\|name\|play-state\|timing-function\|iteration-count\)\)\=\>"
|
|
|
|
|
|
|
|
" animation-direction attributes
|
|
|
|
syn keyword cssAnimationAttr contained alternate reverse
|
|
|
|
syn match cssAnimationAttr contained "\<alternate-reverse\>"
|
|
|
|
|
|
|
|
" animation-fill-mode attributes
|
|
|
|
syn keyword cssAnimationAttr contained forwards backwards both
|
|
|
|
|
|
|
|
" animation-play-state attributes
|
|
|
|
syn keyword cssAnimationAttr contained running paused
|
2015-11-08 04:21:27 -07:00
|
|
|
|
|
|
|
" animation-iteration-count attributes
|
|
|
|
syn keyword cssAnimationAttr contained infinite
|
2014-07-10 21:05:51 -07:00
|
|
|
"------------------------------------------------
|
|
|
|
" CSS Backgrounds and Borders Module Level 3
|
|
|
|
" http://www.w3.org/TR/css3-background/
|
|
|
|
syn match cssBackgroundProp contained "\<background\(-\(attachment\|clip\|color\|image\|origin\|position\|repeat\|size\)\)\=\>"
|
|
|
|
" background-attachment attributes
|
|
|
|
syn keyword cssBackgroundAttr contained scroll fixed local
|
|
|
|
|
|
|
|
" background-position attributes
|
|
|
|
syn keyword cssBackgroundAttr contained left center right top bottom
|
|
|
|
|
|
|
|
" background-repeat attributes
|
|
|
|
syn match cssBackgroundAttr contained "\<no-repeat\>"
|
|
|
|
syn match cssBackgroundAttr contained "\<repeat\(-[xy]\)\=\>"
|
|
|
|
|
|
|
|
" background-size attributes
|
|
|
|
syn keyword cssBackgroundAttr contained cover contain
|
|
|
|
|
|
|
|
syn match cssBorderProp contained "\<border\(-\(top\|right\|bottom\|left\)\)\=\(-\(width\|color\|style\)\)\=\>"
|
|
|
|
syn match cssBorderProp contained "\<border\(-\(top\|bottom\)-\(left\|right\)\)\=-radius\>"
|
|
|
|
syn match cssBorderProp contained "\<border-image\(-\(outset\|repeat\|slice\|source\|width\)\)\=\>"
|
|
|
|
syn match cssBorderProp contained "\<box-decoration-break\>"
|
|
|
|
syn match cssBorderProp contained "\<box-shadow\>"
|
|
|
|
|
|
|
|
" border-image attributes
|
2018-10-28 06:09:49 -07:00
|
|
|
syn keyword cssBorderAttr contained stretch round fill
|
2014-07-10 21:05:51 -07:00
|
|
|
|
|
|
|
" border-style attributes
|
|
|
|
syn keyword cssBorderAttr contained dotted dashed solid double groove ridge inset outset
|
|
|
|
|
|
|
|
" border-width attributes
|
|
|
|
syn keyword cssBorderAttr contained thin thick medium
|
|
|
|
|
|
|
|
" box-decoration-break attributes
|
|
|
|
syn keyword cssBorderAttr contained clone slice
|
|
|
|
"------------------------------------------------
|
|
|
|
|
|
|
|
syn match cssBoxProp contained "\<padding\(-\(top\|right\|bottom\|left\)\)\=\>"
|
|
|
|
syn match cssBoxProp contained "\<margin\(-\(top\|right\|bottom\|left\)\)\=\>"
|
|
|
|
syn match cssBoxProp contained "\<overflow\(-\(x\|y\|style\)\)\=\>"
|
|
|
|
syn match cssBoxProp contained "\<rotation\(-point\)\=\>"
|
|
|
|
syn keyword cssBoxAttr contained visible hidden scroll auto
|
|
|
|
syn match cssBoxAttr contained "\<no-\(display\|content\)\>"
|
|
|
|
|
2019-09-06 18:35:17 -07:00
|
|
|
syn keyword cssCascadeProp contained all
|
|
|
|
syn keyword cssCascadeAttr contained initial unset revert
|
|
|
|
|
2014-07-10 21:05:51 -07:00
|
|
|
syn keyword cssColorProp contained opacity
|
|
|
|
syn match cssColorProp contained "\<color-profile\>"
|
|
|
|
syn match cssColorProp contained "\<rendering-intent\>"
|
|
|
|
|
|
|
|
|
|
|
|
syn match cssDimensionProp contained "\<\(min\|max\)-\(width\|height\)\>"
|
|
|
|
syn keyword cssDimensionProp contained height
|
|
|
|
syn keyword cssDimensionProp contained width
|
|
|
|
|
2018-10-28 06:09:49 -07:00
|
|
|
" CSS Flexible Box Layout Module Level 1
|
|
|
|
" http://www.w3.org/TR/css3-flexbox/
|
|
|
|
" CSS Box Alignment Module Level 3
|
|
|
|
" http://www.w3.org/TR/css-align-3/
|
|
|
|
syn match cssFlexibleBoxProp contained "\<flex\(-\(direction\|wrap\|flow\|grow\|shrink\|basis\)\)\=\>"
|
|
|
|
syn match cssFlexibleBoxProp contained "\<\(align\|justify\)\(-\(items\|self\|content\)\)\=\>"
|
|
|
|
syn keyword cssFlexibleBoxProp contained order
|
|
|
|
|
|
|
|
syn match cssFlexibleBoxAttr contained "\<\(row\|column\|wrap\)\(-reverse\)\=\>"
|
|
|
|
syn keyword cssFlexibleBoxAttr contained nowrap stretch baseline center
|
|
|
|
syn match cssFlexibleBoxAttr contained "\<flex\(-\(start\|end\)\)\=\>"
|
|
|
|
syn match cssFlexibleBoxAttr contained "\<space\(-\(between\|around\)\)\=\>"
|
2014-07-10 21:05:51 -07:00
|
|
|
|
|
|
|
" CSS Fonts Module Level 3
|
|
|
|
" http://www.w3.org/TR/css-fonts-3/
|
|
|
|
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\)\)\=\>"
|
2015-11-08 04:21:27 -07:00
|
|
|
|
2014-07-10 21:05:51 -07:00
|
|
|
" font attributes
|
|
|
|
syn keyword cssFontAttr contained icon menu caption
|
|
|
|
syn match cssFontAttr contained "\<message-box\>"
|
|
|
|
syn match cssFontAttr contained "\<status-bar\>"
|
|
|
|
syn keyword cssFontAttr contained larger smaller
|
|
|
|
syn match cssFontAttr contained "\<\(x\{1,2\}-\)\=\(large\|small\)\>"
|
2018-10-28 06:09:49 -07:00
|
|
|
syn match cssFontAttr contained "\<small-\(caps\|caption\)\>"
|
2014-07-10 21:05:51 -07:00
|
|
|
" font-family attributes
|
|
|
|
syn match cssFontAttr contained "\<\(sans-\)\=serif\>"
|
2015-11-08 04:21:27 -07:00
|
|
|
syn keyword cssFontAttr contained Antiqua Arial Black Book Charcoal Comic Courier Dingbats Gadget Geneva Georgia Grande Helvetica Impact Linotype Lucida MS Monaco Neue New Palatino Roboto Roman Symbol Tahoma Times Trebuchet Verdana Webdings Wingdings York Zapf
|
2014-07-10 21:05:51 -07:00
|
|
|
syn keyword cssFontAttr contained cursive fantasy monospace
|
|
|
|
" font-feature-settings attributes
|
|
|
|
syn keyword cssFontAttr contained on off
|
|
|
|
" font-stretch attributes
|
|
|
|
syn match cssFontAttr contained "\<\(\(ultra\|extra\|semi\)-\)\=\(condensed\|expanded\)\>"
|
|
|
|
" font-style attributes
|
|
|
|
syn keyword cssFontAttr contained italic oblique
|
2015-11-08 04:21:27 -07:00
|
|
|
" font-synthesis attributes
|
|
|
|
syn keyword cssFontAttr contained weight style
|
2014-07-10 21:05:51 -07:00
|
|
|
" font-weight attributes
|
|
|
|
syn keyword cssFontAttr contained bold bolder lighter
|
2015-11-08 04:21:27 -07:00
|
|
|
" TODO: font-variant-* attributes
|
2014-07-10 21:05:51 -07:00
|
|
|
"------------------------------------------------
|
|
|
|
|
|
|
|
" Webkit specific property/attributes
|
|
|
|
syn match cssFontProp contained "\<font-smooth\>"
|
|
|
|
syn match cssFontAttr contained "\<\(subpixel-\)\=\antialiased\>"
|
|
|
|
|
|
|
|
|
|
|
|
" CSS Multi-column Layout Module
|
|
|
|
" http://www.w3.org/TR/css3-multicol/
|
|
|
|
syn match cssMultiColumnProp contained "\<break-\(after\|before\|inside\)\>"
|
|
|
|
syn match cssMultiColumnProp contained "\<column-\(count\|fill\|gap\|rule\(-\(color\|style\|width\)\)\=\|span\|width\)\>"
|
|
|
|
syn keyword cssMultiColumnProp contained columns
|
|
|
|
syn keyword cssMultiColumnAttr contained balance medium
|
2018-10-28 06:09:49 -07:00
|
|
|
syn keyword cssMultiColumnAttr contained always left right page column
|
|
|
|
syn match cssMultiColumnAttr contained "\<avoid\(-\(page\|column\)\)\=\>"
|
2014-07-10 21:05:51 -07:00
|
|
|
|
|
|
|
" http://www.w3.org/TR/css3-break/#page-break
|
|
|
|
syn match cssMultiColumnProp contained "\<page\(-break-\(before\|after\|inside\)\)\=\>"
|
|
|
|
|
2018-10-28 06:09:49 -07:00
|
|
|
" http://www.w3.org/TR/SVG11/interact.html
|
|
|
|
syn match cssInteractProp contained "\<pointer-events\>"
|
|
|
|
syn match cssInteractAttr contained "\<\(visible\)\=\(Painted\|Fill\|Stroke\)\=\>"
|
|
|
|
|
2014-07-10 21:05:51 -07:00
|
|
|
" TODO find following items in w3c docs.
|
|
|
|
syn keyword cssGeneratedContentProp contained quotes crop
|
|
|
|
syn match cssGeneratedContentProp contained "\<counter-\(reset\|increment\)\>"
|
|
|
|
syn match cssGeneratedContentProp contained "\<move-to\>"
|
|
|
|
syn match cssGeneratedContentProp contained "\<page-policy\>"
|
|
|
|
syn match cssGeneratedContentAttr contained "\<\(no-\)\=\(open\|close\)-quote\>"
|
|
|
|
|
2018-10-28 06:09:49 -07:00
|
|
|
" https://www.w3.org/TR/css-grid-1/
|
|
|
|
syn match cssGridProp contained "\<grid\>"
|
2019-09-06 18:35:17 -07:00
|
|
|
syn match cssGridProp contained "\<grid-template\(-\(columns\|rows\|areas\)\)\=\>"
|
2018-10-28 06:09:49 -07:00
|
|
|
syn match cssGridProp contained "\<grid-\(column\|row\)\(-\(start\|end\|gap\)\)\=\>"
|
|
|
|
syn match cssGridProp contained "\<grid-\(area\|gap\)\>"
|
2019-09-06 18:35:17 -07:00
|
|
|
syn match cssGridProp contained "\<grid-auto-\(flow\|rows\|columns\)\>"
|
2014-07-10 21:05:51 -07:00
|
|
|
|
|
|
|
syn match cssHyerlinkProp contained "\<target\(-\(name\|new\|position\)\)\=\>"
|
|
|
|
|
|
|
|
syn match cssListProp contained "\<list-style\(-\(type\|position\|image\)\)\=\>"
|
|
|
|
syn match cssListAttr contained "\<\(lower\|upper\)-\(roman\|alpha\|greek\|latin\)\>"
|
|
|
|
syn match cssListAttr contained "\<\(hiragana\|katakana\)\(-iroha\)\=\>"
|
|
|
|
syn match cssListAttr contained "\<\(decimal\(-leading-zero\)\=\|cjk-ideographic\)\>"
|
|
|
|
syn keyword cssListAttr contained disc circle square hebrew armenian georgian
|
|
|
|
syn keyword cssListAttr contained inside outside
|
|
|
|
|
|
|
|
syn keyword cssPositioningProp contained bottom clear clip display float left
|
|
|
|
syn keyword cssPositioningProp contained position right top visibility
|
|
|
|
syn match cssPositioningProp contained "\<z-index\>"
|
2018-10-28 06:09:49 -07:00
|
|
|
syn keyword cssPositioningAttr contained block compact grid
|
2014-07-10 21:05:51 -07:00
|
|
|
syn match cssPositioningAttr contained "\<table\(-\(row-group\|\(header\|footer\)-group\|row\|column\(-group\)\=\|cell\|caption\)\)\=\>"
|
|
|
|
syn keyword cssPositioningAttr contained left right both
|
|
|
|
syn match cssPositioningAttr contained "\<list-item\>"
|
2018-10-28 06:09:49 -07:00
|
|
|
syn match cssPositioningAttr contained "\<inline\(-\(block\|box\|table\|grid\|flex\)\)\=\>"
|
2019-09-06 18:35:17 -07:00
|
|
|
syn match cssPositioningAttr contained "\<flow\(-root\)\=\>"
|
2018-10-28 06:09:49 -07:00
|
|
|
syn keyword cssPositioningAttr contained static relative absolute fixed subgrid
|
2014-07-10 21:05:51 -07:00
|
|
|
|
2018-10-28 06:09:49 -07:00
|
|
|
syn keyword cssPrintAttr contained landscape portrait crop cross always
|
2014-07-10 21:05:51 -07:00
|
|
|
|
|
|
|
syn match cssTableProp contained "\<\(caption-side\|table-layout\|border-collapse\|border-spacing\|empty-cells\)\>"
|
|
|
|
syn keyword cssTableAttr contained fixed collapse separate show hide once always
|
|
|
|
|
|
|
|
|
2019-09-06 18:35:17 -07:00
|
|
|
syn keyword cssTextProp contained color direction hyphens
|
2014-07-10 21:05:51 -07:00
|
|
|
syn match cssTextProp "\<\(\(word\|letter\)-spacing\|text\(-\(decoration\|transform\|align\|index\|shadow\)\)\=\|vertical-align\|unicode-bidi\|line-height\)\>"
|
|
|
|
syn match cssTextProp contained "\<text-\(justify\|outline\|warp\|align-last\|size-adjust\|rendering\|stroke\|indent\)\>"
|
2019-09-06 18:35:17 -07:00
|
|
|
syn match cssTextProp contained "\<\(word\|line\)-break\|\(overflow\|word\)-wrap\>"
|
2014-07-10 21:05:51 -07:00
|
|
|
syn match cssTextProp contained "\<white-space\>"
|
|
|
|
syn match cssTextProp contained "\<hanging-punctuation\>"
|
2019-09-06 18:35:17 -07:00
|
|
|
syn match cssTextProp contained "\<tab-size\>"
|
2014-07-10 21:05:51 -07:00
|
|
|
syn match cssTextProp contained "\<punctuation-trim\>"
|
|
|
|
syn match cssTextAttr contained "\<line-through\>"
|
|
|
|
syn match cssTextAttr contained "\<\(text-\)\=\(top\|bottom\)\>"
|
|
|
|
syn keyword cssTextAttr contained ltr rtl embed nowrap
|
|
|
|
syn keyword cssTextAttr contained underline overline blink sub super middle
|
|
|
|
syn keyword cssTextAttr contained capitalize uppercase lowercase
|
|
|
|
syn keyword cssTextAttr contained justify baseline sub super
|
2019-09-06 18:35:17 -07:00
|
|
|
syn keyword cssTextAttr contained optimizeLegibility optimizeSpeed geometricPrecision
|
2014-07-10 21:05:51 -07:00
|
|
|
syn match cssTextAttr contained "\<pre\(-\(line\|wrap\)\)\=\>"
|
|
|
|
syn match cssTextAttr contained "\<\(allow\|force\)-end\>"
|
|
|
|
syn keyword cssTextAttr contained start end adjacent
|
|
|
|
syn match cssTextAttr contained "\<inter-\(word\|ideographic\|cluster\)\>"
|
|
|
|
syn keyword cssTextAttr contained distribute kashida first last
|
|
|
|
syn keyword cssTextAttr contained clip ellipsis unrestricted suppress
|
|
|
|
syn match cssTextAttr contained "\<break-all\>"
|
|
|
|
syn match cssTextAttr contained "\<break-word\>"
|
2019-09-06 18:35:17 -07:00
|
|
|
syn keyword cssTextAttr contained manual
|
2014-07-10 21:05:51 -07:00
|
|
|
syn match cssTextAttr contained "\<bidi-override\>"
|
|
|
|
|
|
|
|
syn match cssTransformProp contained "\<transform\(-\(origin\|style\)\)\=\>"
|
|
|
|
syn match cssTransformProp contained "\<perspective\(-origin\)\=\>"
|
|
|
|
syn match cssTransformProp contained "\<backface-visibility\>"
|
|
|
|
|
|
|
|
" CSS Transitions
|
|
|
|
" http://www.w3.org/TR/css3-transitions/
|
|
|
|
syn match cssTransitionProp contained "\<transition\(-\(delay\|duration\|property\|timing-function\)\)\=\>"
|
|
|
|
|
|
|
|
" transition-time-function attributes
|
|
|
|
syn match cssTransitionAttr contained "\<linear\(-gradient\)\@!\>"
|
|
|
|
syn match cssTransitionAttr contained "\<ease\(-\(in-out\|out\|in\)\)\=\>"
|
|
|
|
syn match cssTransitionAttr contained "\<step\(-start\|-end\)\=\>"
|
|
|
|
"------------------------------------------------
|
|
|
|
" CSS Basic User Interface Module Level 3 (CSS3 UI)
|
|
|
|
" http://www.w3.org/TR/css3-ui/
|
|
|
|
syn match cssUIProp contained "\<box-sizing\>"
|
|
|
|
syn match cssUIAttr contained "\<\(content\|padding\|border\)\(-box\)\=\>"
|
|
|
|
|
|
|
|
syn keyword cssUIProp contained cursor
|
|
|
|
syn match cssUIAttr contained "\<\(\([ns]\=[ew]\=\)\|col\|row\|nesw\|nwse\)-resize\>"
|
|
|
|
syn keyword cssUIAttr contained crosshair help move pointer alias copy
|
|
|
|
syn keyword cssUIAttr contained progress wait text cell move
|
|
|
|
syn match cssUIAttr contained "\<context-menu\>"
|
|
|
|
syn match cssUIAttr contained "\<no-drop\>"
|
|
|
|
syn match cssUIAttr contained "\<not-allowed\>"
|
|
|
|
syn match cssUIAttr contained "\<all-scroll\>"
|
|
|
|
syn match cssUIAttr contained "\<\(vertical-\)\=text\>"
|
|
|
|
syn match cssUIAttr contained "\<zoom\(-in\|-out\)\=\>"
|
|
|
|
|
|
|
|
syn match cssUIProp contained "\<ime-mode\>"
|
|
|
|
syn keyword cssUIAttr contained active inactive disabled
|
|
|
|
|
|
|
|
syn match cssUIProp contained "\<nav-\(down\|index\|left\|right\|up\)\=\>"
|
|
|
|
syn match cssUIProp contained "\<outline\(-\(width\|style\|color\|offset\)\)\=\>"
|
|
|
|
syn keyword cssUIAttr contained invert
|
|
|
|
|
|
|
|
syn keyword cssUIProp contained icon resize
|
|
|
|
syn keyword cssUIAttr contained both horizontal vertical
|
|
|
|
|
|
|
|
syn match cssUIProp contained "\<text-overflow\>"
|
|
|
|
syn keyword cssUIAttr contained clip ellipsis
|
|
|
|
|
2018-10-28 06:09:49 -07:00
|
|
|
syn match cssUIProp contained "\<image-rendering\>"
|
|
|
|
syn keyword cssUIAttr contained pixellated
|
|
|
|
syn match cssUIAttr contained "\<crisp-edges\>"
|
|
|
|
|
2014-07-10 21:05:51 -07:00
|
|
|
"------------------------------------------------
|
|
|
|
" Webkit/iOS specific attributes
|
2018-10-28 06:09:49 -07:00
|
|
|
syn match cssUIAttr contained '\<preserve-3d\>'
|
2014-07-10 21:05:51 -07:00
|
|
|
" IE specific attributes
|
2018-10-28 06:09:49 -07:00
|
|
|
syn match cssIEUIAttr contained '\<bicubic\>'
|
2014-07-10 21:05:51 -07:00
|
|
|
|
|
|
|
" Webkit/iOS specific properties
|
2018-10-28 06:09:49 -07:00
|
|
|
syn match cssUIProp contained '\<tap-highlight-color\|user-select\|touch-callout\>'
|
2014-07-10 21:05:51 -07:00
|
|
|
" IE specific properties
|
2018-10-28 06:09:49 -07:00
|
|
|
syn match cssIEUIProp contained '\<interpolation-mode\|zoom\|filter\>'
|
2014-07-10 21:05:51 -07:00
|
|
|
|
|
|
|
" Webkit/Firebox specific properties/attributes
|
|
|
|
syn keyword cssUIProp contained appearance
|
|
|
|
syn keyword cssUIAttr contained window button field icon document menu
|
|
|
|
|
|
|
|
|
|
|
|
syn match cssAuralProp contained "\<\(pause\|cue\)\(-\(before\|after\)\)\=\>"
|
|
|
|
syn match cssAuralProp contained "\<\(play-during\|speech-rate\|voice-family\|pitch\(-range\)\=\|speak\(-\(punctuation\|numeral\|header\)\)\=\)\>"
|
|
|
|
syn keyword cssAuralProp contained volume during azimuth elevation stress richness
|
|
|
|
syn match cssAuralAttr contained "\<\(x-\)\=\(soft\|loud\)\>"
|
|
|
|
syn keyword cssAuralAttr contained silent
|
|
|
|
syn match cssAuralAttr contained "\<spell-out\>"
|
|
|
|
syn keyword cssAuralAttr contained non mix
|
|
|
|
syn match cssAuralAttr contained "\<\(left\|right\)-side\>"
|
|
|
|
syn match cssAuralAttr contained "\<\(far\|center\)-\(left\|center\|right\)\>"
|
|
|
|
syn keyword cssAuralAttr contained leftwards rightwards behind
|
|
|
|
syn keyword cssAuralAttr contained below level above lower higher
|
|
|
|
syn match cssAuralAttr contained "\<\(x-\)\=\(slow\|fast\|low\|high\)\>"
|
|
|
|
syn keyword cssAuralAttr contained faster slower
|
|
|
|
syn keyword cssAuralAttr contained male female child code digits continuous
|
|
|
|
|
|
|
|
" mobile text
|
|
|
|
syn match cssMobileTextProp contained "\<text-size-adjust\>"
|
|
|
|
|
2019-09-06 18:35:17 -07:00
|
|
|
syn keyword cssMediaProp contained width height orientation scan
|
2018-10-28 06:09:49 -07:00
|
|
|
syn match cssMediaProp contained /\(\(max\|min\)-\)\=\(\(device\)-\)\=aspect-ratio/
|
|
|
|
syn match cssMediaProp contained /\(\(max\|min\)-\)\=device-pixel-ratio/
|
|
|
|
syn match cssMediaProp contained /\(\(max\|min\)-\)\=device-\(height\|width\)/
|
|
|
|
syn match cssMediaProp contained /\(\(max\|min\)-\)\=\(height\|width\|resolution\|monochrome\|color\(-index\)\=\)/
|
|
|
|
syn keyword cssMediaAttr contained portrait landscape progressive interlace
|
2019-09-06 18:35:17 -07:00
|
|
|
syn match cssKeyFrameProp contained /\(\d\+\(\.\d\+\)\?%\|\(\<from\|to\>\)\)/ nextgroup=cssDefinition
|
2018-10-28 06:09:49 -07:00
|
|
|
syn match cssPageMarginProp /@\(\(top\|left\|right\|bottom\)-\(left\|center\|right\|middle\|bottom\)\)\(-corner\)\=/ contained nextgroup=cssDefinition
|
|
|
|
syn keyword cssPageProp contained content size
|
|
|
|
syn keyword cssPageProp contained orphans widows
|
|
|
|
syn keyword cssFontDescriptorProp contained src
|
|
|
|
syn match cssFontDescriptorProp contained "\<unicode-range\>"
|
|
|
|
" unicode-range attributes
|
|
|
|
syn match cssFontDescriptorAttr contained "U+[0-9A-Fa-f?]\+"
|
|
|
|
syn match cssFontDescriptorAttr contained "U+\x\+-\x\+"
|
2014-07-10 21:05:51 -07:00
|
|
|
|
|
|
|
syn match cssBraces contained "[{}]"
|
|
|
|
syn match cssError contained "{@<>"
|
2019-09-06 18:35:17 -07:00
|
|
|
syn region cssDefinition transparent matchgroup=cssBraces start='{' end='}' contains=cssTagName,cssAttributeSelector,cssClassName,cssIdentifier,cssAtRule,cssAttrRegion,css.*Prop,cssComment,cssValue.*,cssColor,cssURL,cssImportant,cssCustomProp,cssError,cssStringQ,cssStringQQ,cssFunction,cssUnicodeEscape,cssVendor,cssDefinition,cssHacks,cssNoise fold
|
2014-07-10 21:05:51 -07:00
|
|
|
syn match cssBraceError "}"
|
|
|
|
syn match cssAttrComma ","
|
|
|
|
|
|
|
|
" Pseudo class
|
|
|
|
" http://www.w3.org/TR/css3-selectors/
|
|
|
|
syn match cssPseudoClass ":[A-Za-z0-9_-]*" contains=cssNoise,cssPseudoClassId,cssUnicodeEscape,cssVendor,cssPseudoClassFn
|
|
|
|
syn keyword cssPseudoClassId contained link visited active hover before after left right
|
|
|
|
syn keyword cssPseudoClassId contained root empty target enable disabled checked invalid
|
|
|
|
syn match cssPseudoClassId contained "\<first-\(line\|letter\)\>"
|
|
|
|
syn match cssPseudoClassId contained "\<\(first\|last\|only\)-\(of-type\|child\)\>"
|
2019-09-06 18:35:17 -07:00
|
|
|
syn region cssPseudoClassFn contained matchgroup=cssFunctionName start="\<\(not\|lang\|\(nth\|nth-last\)-\(of-type\|child\)\)(" end=")" contains=cssStringQ,cssStringQQ
|
2014-07-10 21:05:51 -07:00
|
|
|
" ------------------------------------
|
|
|
|
" Vendor specific properties
|
|
|
|
syn match cssPseudoClassId contained "\<selection\>"
|
|
|
|
syn match cssPseudoClassId contained "\<focus\(-inner\)\=\>"
|
|
|
|
syn match cssPseudoClassId contained "\<\(input-\)\=placeholder\>"
|
|
|
|
|
2015-11-08 04:21:27 -07:00
|
|
|
" Misc highlight groups
|
2018-10-28 06:09:49 -07:00
|
|
|
syntax match cssUnitDecorators /\(#\|-\|+\|%\|mm\|cm\|in\|pt\|pc\|em\|ex\|px\|ch\|rem\|vh\|vw\|vmin\|vmax\|dpi\|dppx\|dpcm\|Hz\|kHz\|s\|ms\|deg\|grad\|rad\)/ contained
|
2015-11-08 04:21:27 -07:00
|
|
|
syntax match cssNoise contained /\(:\|;\|\/\)/
|
2014-07-10 21:05:51 -07:00
|
|
|
|
|
|
|
" Comment
|
|
|
|
syn region cssComment start="/\*" end="\*/" contains=@Spell fold
|
|
|
|
|
|
|
|
syn match cssUnicodeEscape "\\\x\{1,6}\s\?"
|
|
|
|
syn match cssSpecialCharQQ +\\\\\|\\"+ contained
|
|
|
|
syn match cssSpecialCharQ +\\\\\|\\'+ contained
|
|
|
|
syn region cssStringQQ start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=cssUnicodeEscape,cssSpecialCharQQ
|
|
|
|
syn region cssStringQ start=+'+ skip=+\\\\\|\\'+ end=+'+ contains=cssUnicodeEscape,cssSpecialCharQ
|
|
|
|
|
|
|
|
" Vendor Prefix
|
2018-10-28 06:09:49 -07:00
|
|
|
syn match cssVendor contained "-\(webkit\|moz\|o\|ms\)-"
|
2014-07-10 21:05:51 -07:00
|
|
|
|
|
|
|
" Various CSS Hack characters
|
|
|
|
" In earlier versions of IE (6 and 7), one can prefix property names
|
|
|
|
" with a _ or * to isolate those definitions to particular versions of IE
|
|
|
|
" This is purely decorative and therefore we assign to the same highlight
|
|
|
|
" group to cssVendor, for more information:
|
|
|
|
" http://www.paulirish.com/2009/browser-specific-css-hacks/
|
|
|
|
syn match cssHacks contained /\(_\|*\)/
|
|
|
|
|
|
|
|
" Attr Enhance
|
|
|
|
" Some keywords are both Prop and Attr, so we have to handle them
|
2019-09-06 18:35:17 -07:00
|
|
|
" cssPseudoClassId is hidden by cssAttrRegion, so we add it here. see #69
|
|
|
|
syn region cssAttrRegion start=/:/ end=/\ze\(;\|)\|}\|{\)/ contained contains=cssPseudoClassId,css.*Attr,cssColor,cssImportant,cssValue.*,cssFunction,cssString.*,cssURL,cssComment,cssUnicodeEscape,cssVendor,cssError,cssAttrComma,cssNoise
|
2014-07-10 21:05:51 -07:00
|
|
|
|
|
|
|
" Hack for transition
|
2015-11-08 04:21:27 -07:00
|
|
|
" 'transition' has Props after ':'.
|
|
|
|
syn region cssAttrRegion start=/transition\s*:/ end=/\ze\(;\|)\|}\)/ contained contains=css.*Prop,css.*Attr,cssColor,cssImportant,cssValue.*,cssFunction,cssString.*,cssURL,cssComment,cssUnicodeEscape,cssVendor,cssError,cssAttrComma,cssNoise
|
2014-07-10 21:05:51 -07:00
|
|
|
|
2019-09-06 18:35:17 -07:00
|
|
|
syn match cssAtKeyword /@\(font-face\|media\|keyframes\|import\|charset\|namespace\|page\|supports\)/
|
2018-10-28 06:09:49 -07:00
|
|
|
|
|
|
|
syn keyword cssAtRuleLogical only not and contained
|
|
|
|
|
|
|
|
" @media
|
|
|
|
" Reference: http://www.w3.org/TR/css3-mediaqueries/
|
2019-09-06 18:35:17 -07:00
|
|
|
syn region cssAtRule start=/@media\>/ end=/\ze{/ skipwhite skipnl matchgroup=cssAtKeyword contains=cssMediaProp,cssValueLength,cssAtRuleLogical,cssValueInteger,cssMediaAttr,cssVendor,cssMediaType,cssComment,cssCustomProp,cssFunctionName nextgroup=cssDefinition
|
2018-10-28 06:09:49 -07:00
|
|
|
syn keyword cssMediaType contained screen print aural braille embossed handheld projection tty tv speech all contained
|
|
|
|
|
|
|
|
" @page
|
|
|
|
" http://www.w3.org/TR/css3-page/
|
|
|
|
syn region cssAtRule start=/@page\>/ end=/\ze{/ skipwhite skipnl matchgroup=cssAtKeyword contains=cssPagePseudo,cssComment nextgroup=cssDefinition
|
|
|
|
syn match cssPagePseudo /:\(left\|right\|first\|blank\)/ contained skipwhite skipnl
|
|
|
|
" @keyframe
|
|
|
|
" http://www.w3.org/TR/css3-animations/#keyframes
|
|
|
|
syn region cssAtRule start=/@\(-[a-z]\+-\)\=keyframes\>/ end=/\ze{/ skipwhite skipnl matchgroup=cssAtKeyword contains=cssVendor,cssComment nextgroup=cssDefinition
|
|
|
|
|
|
|
|
syn region cssAtRule start=/@import\>/ end=/\ze;/ contains=cssStringQ,cssStringQQ,cssUnicodeEscape,cssComment,cssAtKeyword,cssURL,cssMediaProp,cssValueLength,cssAtRuleLogical,cssValueInteger,cssMediaAttr,cssMediaType
|
|
|
|
syn region cssAtRule start=/@charset\>/ end=/\ze;/ contains=cssStringQ,cssStringQQ,cssUnicodeEscape,cssComment,cssAtKeyword
|
|
|
|
syn region cssAtRule start=/@namespace\>/ end=/\ze;/ contains=cssStringQ,cssStringQQ,cssUnicodeEscape,cssComment,cssAtKeyword
|
|
|
|
|
|
|
|
" @supports
|
|
|
|
" https://www.w3.org/TR/css3-conditional/#at-supports
|
|
|
|
syn region cssAtRule start=/@supports\>/ end=/\ze{/ skipwhite skipnl contains=cssAtRuleLogical,cssAttrRegion,css.*Prop,cssValue.*,cssVendor,cssAtKeyword,cssComment nextgroup=cssDefinition
|
|
|
|
|
2014-07-10 21:05:51 -07:00
|
|
|
|
|
|
|
if main_syntax == "css"
|
|
|
|
syn sync minlines=10
|
|
|
|
endif
|
|
|
|
|
|
|
|
" Define the default highlighting.
|
2017-04-28 12:06:44 -07:00
|
|
|
" Only when an item doesn't have highlighting yet
|
2017-04-28 12:14:34 -07:00
|
|
|
|
|
|
|
hi def link cssComment Comment
|
|
|
|
hi def link cssVendor Comment
|
|
|
|
hi def link cssHacks Comment
|
|
|
|
hi def link cssTagName Statement
|
|
|
|
hi def link cssDeprecated Error
|
|
|
|
hi def link cssSelectorOp Special
|
|
|
|
hi def link cssSelectorOp2 Special
|
|
|
|
hi def link cssAttrComma Special
|
|
|
|
|
|
|
|
hi def link cssAnimationProp cssProp
|
|
|
|
hi def link cssBackgroundProp cssProp
|
|
|
|
hi def link cssBorderProp cssProp
|
|
|
|
hi def link cssBoxProp cssProp
|
2019-09-06 18:35:17 -07:00
|
|
|
hi def link cssCascadeProp cssProp
|
2017-04-28 12:14:34 -07:00
|
|
|
hi def link cssColorProp cssProp
|
|
|
|
hi def link cssContentForPagedMediaProp cssProp
|
|
|
|
hi def link cssDimensionProp cssProp
|
|
|
|
hi def link cssFlexibleBoxProp cssProp
|
|
|
|
hi def link cssFontProp cssProp
|
|
|
|
hi def link cssGeneratedContentProp cssProp
|
|
|
|
hi def link cssGridProp cssProp
|
|
|
|
hi def link cssHyerlinkProp cssProp
|
2018-10-28 06:09:49 -07:00
|
|
|
hi def link cssInteractProp cssProp
|
2017-04-28 12:14:34 -07:00
|
|
|
hi def link cssLineboxProp cssProp
|
|
|
|
hi def link cssListProp cssProp
|
|
|
|
hi def link cssMarqueeProp cssProp
|
|
|
|
hi def link cssMultiColumnProp cssProp
|
|
|
|
hi def link cssPagedMediaProp cssProp
|
|
|
|
hi def link cssPositioningProp cssProp
|
|
|
|
hi def link cssPrintProp cssProp
|
|
|
|
hi def link cssRubyProp cssProp
|
|
|
|
hi def link cssSpeechProp cssProp
|
|
|
|
hi def link cssTableProp cssProp
|
|
|
|
hi def link cssTextProp cssProp
|
|
|
|
hi def link cssTransformProp cssProp
|
|
|
|
hi def link cssTransitionProp cssProp
|
|
|
|
hi def link cssUIProp cssProp
|
|
|
|
hi def link cssIEUIProp cssProp
|
|
|
|
hi def link cssAuralProp cssProp
|
|
|
|
hi def link cssRenderProp cssProp
|
|
|
|
hi def link cssMobileTextProp cssProp
|
|
|
|
|
|
|
|
hi def link cssAnimationAttr cssAttr
|
|
|
|
hi def link cssBackgroundAttr cssAttr
|
|
|
|
hi def link cssBorderAttr cssAttr
|
|
|
|
hi def link cssBoxAttr cssAttr
|
|
|
|
hi def link cssContentForPagedMediaAttr cssAttr
|
|
|
|
hi def link cssDimensionAttr cssAttr
|
|
|
|
hi def link cssFlexibleBoxAttr cssAttr
|
|
|
|
hi def link cssFontAttr cssAttr
|
|
|
|
hi def link cssGeneratedContentAttr cssAttr
|
|
|
|
hi def link cssGridAttr cssAttr
|
|
|
|
hi def link cssHyerlinkAttr cssAttr
|
2018-10-28 06:09:49 -07:00
|
|
|
hi def link cssInteractAttr cssAttr
|
2017-04-28 12:14:34 -07:00
|
|
|
hi def link cssLineboxAttr cssAttr
|
|
|
|
hi def link cssListAttr cssAttr
|
|
|
|
hi def link cssMarginAttr cssAttr
|
|
|
|
hi def link cssMarqueeAttr cssAttr
|
|
|
|
hi def link cssMultiColumnAttr cssAttr
|
|
|
|
hi def link cssPaddingAttr cssAttr
|
|
|
|
hi def link cssPagedMediaAttr cssAttr
|
|
|
|
hi def link cssPositioningAttr cssAttr
|
|
|
|
hi def link cssGradientAttr cssAttr
|
|
|
|
hi def link cssPrintAttr cssAttr
|
|
|
|
hi def link cssRubyAttr cssAttr
|
|
|
|
hi def link cssSpeechAttr cssAttr
|
|
|
|
hi def link cssTableAttr cssAttr
|
|
|
|
hi def link cssTextAttr cssAttr
|
|
|
|
hi def link cssTransformAttr cssAttr
|
|
|
|
hi def link cssTransitionAttr cssAttr
|
|
|
|
hi def link cssUIAttr cssAttr
|
|
|
|
hi def link cssIEUIAttr cssAttr
|
|
|
|
hi def link cssAuralAttr cssAttr
|
|
|
|
hi def link cssRenderAttr cssAttr
|
2019-09-06 18:35:17 -07:00
|
|
|
hi def link cssCascadeAttr cssAttr
|
2017-04-28 12:14:34 -07:00
|
|
|
hi def link cssCommonAttr cssAttr
|
|
|
|
|
|
|
|
hi def link cssPseudoClassId PreProc
|
|
|
|
hi def link cssPseudoClassLang Constant
|
|
|
|
hi def link cssValueLength Number
|
|
|
|
hi def link cssValueInteger Number
|
|
|
|
hi def link cssValueNumber Number
|
|
|
|
hi def link cssValueAngle Number
|
|
|
|
hi def link cssValueTime Number
|
|
|
|
hi def link cssValueFrequency Number
|
|
|
|
hi def link cssFunction Constant
|
|
|
|
hi def link cssURL String
|
|
|
|
hi def link cssFunctionName Function
|
|
|
|
hi def link cssFunctionComma Function
|
|
|
|
hi def link cssColor Constant
|
|
|
|
hi def link cssIdentifier Function
|
2018-10-28 06:09:49 -07:00
|
|
|
hi def link cssAtRule Include
|
|
|
|
hi def link cssAtKeyword PreProc
|
2017-04-28 12:14:34 -07:00
|
|
|
hi def link cssImportant Special
|
2019-09-06 18:35:17 -07:00
|
|
|
hi def link cssCustomProp Special
|
2017-04-28 12:14:34 -07:00
|
|
|
hi def link cssBraces Function
|
|
|
|
hi def link cssBraceError Error
|
|
|
|
hi def link cssError Error
|
|
|
|
hi def link cssUnicodeEscape Special
|
|
|
|
hi def link cssStringQQ String
|
|
|
|
hi def link cssStringQ String
|
|
|
|
hi def link cssAttributeSelector String
|
|
|
|
hi def link cssMediaType Special
|
|
|
|
hi def link cssMediaComma Normal
|
2018-10-28 06:09:49 -07:00
|
|
|
hi def link cssAtRuleLogical Statement
|
2017-04-28 12:14:34 -07:00
|
|
|
hi def link cssMediaProp cssProp
|
|
|
|
hi def link cssMediaAttr cssAttr
|
|
|
|
hi def link cssPagePseudo PreProc
|
2018-10-28 06:09:49 -07:00
|
|
|
hi def link cssPageMarginProp cssAtKeyword
|
2017-04-28 12:14:34 -07:00
|
|
|
hi def link cssPageProp cssProp
|
2018-10-28 06:09:49 -07:00
|
|
|
hi def link cssKeyFrameProp Constant
|
2017-04-28 12:14:34 -07:00
|
|
|
hi def link cssFontDescriptor Special
|
|
|
|
hi def link cssFontDescriptorProp cssProp
|
|
|
|
hi def link cssFontDescriptorAttr cssAttr
|
|
|
|
hi def link cssUnicodeRange Constant
|
|
|
|
hi def link cssClassName Function
|
|
|
|
hi def link cssClassNameDot Function
|
|
|
|
hi def link cssProp StorageClass
|
|
|
|
hi def link cssAttr Constant
|
|
|
|
hi def link cssUnitDecorators Number
|
|
|
|
hi def link cssNoise Noise
|
2014-07-10 21:05:51 -07:00
|
|
|
|
|
|
|
let b:current_syntax = "css"
|
|
|
|
|
|
|
|
if main_syntax == 'css'
|
|
|
|
unlet main_syntax
|
|
|
|
endif
|
|
|
|
|
|
|
|
let &cpo = s:cpo_save
|
|
|
|
unlet s:cpo_save
|
|
|
|
|
2021-05-01 11:08:45 -07:00
|
|
|
" vim: ts=8
|