Mercurial > vim
annotate runtime/syntax/css.vim @ 6007:ce284c205558 v7.4.344
updated for version 7.4.344
Problem: Unessecary initializations and other things related to
matchaddpos().
Solution: Code cleanup. (Alexey Radkov)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 25 Jun 2014 18:15:22 +0200 |
parents | 7818ca6de3d0 |
children | 0303182665d5 |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
3830 | 2 " Language: Cascading Style Sheets |
3 " Previous Contributor List: | |
4 " Claudio Fleiner <claudio@fleiner.com> (Maintainer) | |
5 " Yeti (Add full CSS2, HTML4 support) | |
6 " Nikolai Weibull (Add CSS2 support) | |
7 " Maintainer: Jules Wang <w.jq0722@gmail.com> | |
3893 | 8 " URL: https://github.com/JulesWang/css.vim |
5555 | 9 " Last Change: 2013 Nov.27 |
7 | 10 |
11 " For version 5.x: Clear all syntax items | |
12 " For version 6.x: Quit when a syntax file was already loaded | |
13 if !exists("main_syntax") | |
14 if version < 600 | |
15 syntax clear | |
16 elseif exists("b:current_syntax") | |
5239 | 17 finish |
18 endif | |
19 let main_syntax = 'css' | |
20 elseif exists("b:current_syntax") && b:current_syntax == "css" | |
7 | 21 finish |
22 endif | |
23 | |
3854 | 24 let s:cpo_save = &cpo |
25 set cpo&vim | |
26 | |
7 | 27 syn case ignore |
28 | |
3830 | 29 " All HTML4 tags |
7 | 30 syn keyword cssTagName abbr acronym address applet area a b base |
31 syn keyword cssTagName basefont bdo big blockquote body br button | |
32 syn keyword cssTagName caption center cite code col colgroup dd del | |
33 syn keyword cssTagName dfn dir div dl dt em fieldset font form frame | |
34 syn keyword cssTagName frameset h1 h2 h3 h4 h5 h6 head hr html img i | |
35 syn keyword cssTagName iframe img input ins isindex kbd label legend li | |
36 syn keyword cssTagName link map menu meta noframes noscript ol optgroup | |
37 syn keyword cssTagName option p param pre q s samp script select small | |
3830 | 38 syn keyword cssTagName span strike strong style sub sup table tbody td |
7 | 39 syn keyword cssTagName textarea tfoot th thead title tr tt ul u var |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
40 syn keyword cssTagName object svg |
3830 | 41 |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
42 " 34 HTML5 tags |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
43 syn keyword cssTagName article aside audio bdi canvas command data |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
44 syn keyword cssTagName datalist details dialog embed figcaption figure footer |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
45 syn keyword cssTagName header hgroup keygen main mark menuitem meter nav |
3830 | 46 syn keyword cssTagName output progress rt rp ruby section |
47 syn keyword cssTagName source summary time track video wbr | |
48 | |
49 " Tags not supported in HTML5 | |
50 syn keyword cssDeprecated acronym applet basefont big center dir | |
51 syn keyword cssDeprecated font frame frameset noframes strike tt | |
52 | |
7 | 53 syn match cssTagName "\*" |
54 | |
3830 | 55 " selectors |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
56 syn match cssSelectorOp "[,>+~]" |
3830 | 57 syn match cssSelectorOp2 "[~|^$*]\?=" contained |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
58 syn region cssAttributeSelector matchgroup=cssSelectorOp start="\[" end="]" contains=cssUnicodeEscape,cssSelectorOp2,cssStringQ,cssStringQQ |
7 | 59 |
3830 | 60 " .class and #id |
5555 | 61 syn match cssClassName "\.[A-Za-z][A-Za-z0-9_-]\+" contains=cssClassNameDot |
62 syn match cssClassNameDot contained '\.' | |
7 | 63 |
557 | 64 try |
36 | 65 syn match cssIdentifier "#[A-Za-zĄ-’_@][A-Za-zĄ-’0-9_@-]*" |
557 | 66 catch /^.*/ |
67 syn match cssIdentifier "#[A-Za-z_@][A-Za-z0-9_@-]*" | |
68 endtry | |
69 | |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
70 " digits |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
71 syn match cssValueInteger contained "[-+]\=\d\+" contains=cssUnitDecorators |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
72 syn match cssValueNumber contained "[-+]\=\d\+\(\.\d*\)\=" contains=cssUnitDecorators |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
73 syn match cssValueLength contained "[-+]\=\d\+\(\.\d*\)\=\(%\|mm\|cm\|in\|pt\|pc\|em\|ex\|px\|rem\|dpi\|dppx\|dpcm\)" contains=cssUnitDecorators |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
74 syn match cssValueAngle contained "[-+]\=\d\+\(\.\d*\)\=\(deg\|grad\|rad\)" contains=cssUnitDecorators |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
75 syn match cssValueTime contained "+\=\d\+\(\.\d*\)\=\(ms\|s\)" contains=cssUnitDecorators |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
76 syn match cssValueFrequency contained "+\=\d\+\(\.\d*\)\=\(Hz\|kHz\)" contains=cssUnitDecorators |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
77 |
5555 | 78 |
79 syn match cssIncludeKeyword /@\(-[a-z]+-\)\=\(media\|keyframes\|import\|charset\|namespace\|page\)/ contained | |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
80 " @media |
5555 | 81 syn region cssInclude start=/@media\>/ end=/\ze{/ skipwhite skipnl contains=cssMediaProp,cssValueLength,cssMediaKeyword,cssValueInteger,cssMediaAttr,cssVendor,cssMediaType,cssIncludeKeyword,cssMediaComma,cssComment nextgroup=cssMediaBlock |
5369
5bfefa47d4a0
Fix problem with 'iskeyword' in CSS syntax.
Bram Moolenaar <bram@vim.org>
parents:
5362
diff
changeset
|
82 syn keyword cssMediaType contained screen print aural braille embossed handheld projection tty tv speech all contained skipwhite skipnl |
5bfefa47d4a0
Fix problem with 'iskeyword' in CSS syntax.
Bram Moolenaar <bram@vim.org>
parents:
5362
diff
changeset
|
83 syn keyword cssMediaKeyword only not and contained |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
84 syn region cssMediaBlock transparent matchgroup=cssBraces start='{' end='}' contains=css.*Attr,css.*Prop,cssComment,cssValue.*,cssColor,cssURL,cssImportant,cssError,cssStringQ,cssStringQQ,cssFunction,cssUnicodeEscape,cssVendor,cssDefinition,cssTagName,cssClassName,cssIdentifier,cssPseudoClass,cssSelectorOp,cssSelectorOp2,cssAttributeSelector fold |
5555 | 85 syn match cssMediaComma "," skipwhite skipnl contained |
7 | 86 |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
87 " Reference: http://www.w3.org/TR/css3-mediaqueries/ |
5369
5bfefa47d4a0
Fix problem with 'iskeyword' in CSS syntax.
Bram Moolenaar <bram@vim.org>
parents:
5362
diff
changeset
|
88 syn keyword cssMediaProp contained width height orientation scan grid |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
89 syn match cssMediaProp contained /\(\(device\)-\)\=aspect-ratio/ |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
90 syn match cssMediaProp contained /\(\(max\|min\)-\)\=device-pixel-ratio/ |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
91 syn match cssMediaProp contained /\(\(max\|min\)-\)\=device-\(height\|width\)/ |
5369
5bfefa47d4a0
Fix problem with 'iskeyword' in CSS syntax.
Bram Moolenaar <bram@vim.org>
parents:
5362
diff
changeset
|
92 syn match cssMediaProp contained /\(\(max\|min\)-\)\=\(height\|width\|resolution\|monochrome\|color\(-index\)\=\)/ |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
93 syn keyword cssMediaAttr contained portrait landscape progressive interlace |
7 | 94 |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
95 " @page |
5555 | 96 " http://www.w3.org/TR/css3-page/ |
97 syn match cssPage "@page\>[^{]*{\@=" contains=cssPagePseudo,cssIncludeKeyword nextgroup=cssPageWrap transparent skipwhite skipnl | |
98 syn match cssPagePseudo /:\(left\|right\|first\|blank\)/ contained skipwhite skipnl | |
99 syn region cssPageWrap contained transparent matchgroup=cssBraces start="{" end="}" contains=cssPageMargin,cssPageProp,cssAttrRegion,css.*Prop,cssComment,cssValue.*,cssColor,cssURL,cssImportant,cssError,cssStringQ,cssStringQQ,cssFunction,cssUnicodeEscape,cssVendor,cssDefinition,cssHacks | |
100 syn match cssPageMargin /@\(\(top\|left\|right\|bottom\)-\(left\|center\|right\|middle\|bottom\)\)\(-corner\)\=/ contained nextgroup=cssDefinition skipwhite skipnl | |
101 syn keyword cssPageProp contained content size | |
102 " http://www.w3.org/TR/CSS2/page.html#break-inside | |
103 syn keyword cssPageProp contained orphans widows | |
7 | 104 |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
105 " @keyframe |
5555 | 106 " http://www.w3.org/TR/css3-animations/#keyframes |
107 syn match cssKeyFrame "@\(-[a-z]+-\)\=keyframes\>[^{]*{\@=" nextgroup=cssKeyFrameWrap contains=cssVendor,cssIncludeKeyword skipwhite skipnl transparent | |
108 syn region cssKeyFrameWrap contained transparent matchgroup=cssBraces start="{" end="}" contains=cssKeyFrameSelector | |
109 syn match cssKeyFrameSelector /\(\d*%\|from\|to\)\=/ contained skipwhite skipnl nextgroup=cssDefinition | |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
110 |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
111 " @import |
5555 | 112 syn region cssInclude start=/@import\>/ end=/\ze;/ transparent contains=cssStringQ,cssStringQQ,cssUnicodeEscape,cssComment,cssIncludeKeyword,cssURL,cssMediaProp,cssValueLength,cssMediaKeyword,cssValueInteger,cssMediaAttr,cssVendor,cssMediaType |
113 syn region cssInclude start=/@charset\>/ end=/\ze;/ transparent contains=cssStringQ,cssStringQQ,cssUnicodeEscape,cssComment,cssIncludeKeyword | |
114 syn region cssInclude start=/@namespace\>/ end=/\ze;/ transparent contains=cssStringQ,cssStringQQ,cssUnicodeEscape,cssComment,cssIncludeKeyword | |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
115 |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
116 " @font-face |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
117 " http://www.w3.org/TR/css3-fonts/#at-font-face-rule |
7 | 118 syn match cssFontDescriptor "@font-face\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl |
119 syn region cssFontDescriptorBlock contained transparent matchgroup=cssBraces start="{" end="}" contains=cssComment,cssError,cssUnicodeEscape,cssFontProp,cssFontAttr,cssCommonAttr,cssStringQ,cssStringQQ,cssFontDescriptorProp,cssValue.*,cssFontDescriptorFunction,cssUnicodeRange,cssFontDescriptorAttr | |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
120 "syn match cssFontDescriptorProp contained "\<\(unicode-range\|unit-per-em\|panose-1\|cap-height\|x-height\|definition-src\)\>" |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
121 "syn keyword cssFontDescriptorProp contained src stemv stemh slope ascent descent widths bbox baseline centerline mathline topline |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
122 syn keyword cssFontDescriptorProp contained src |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
123 syn match cssFontDescriptorProp contained "\<unicode-range\>" |
7 | 124 syn keyword cssFontDescriptorAttr contained all |
125 syn region cssFontDescriptorFunction contained matchgroup=cssFunctionName start="\<\(uri\|url\|local\|format\)\s*(" end=")" contains=cssStringQ,cssStringQQ oneline keepend | |
126 syn match cssUnicodeRange contained "U+[0-9A-Fa-f?]\+" | |
127 syn match cssUnicodeRange contained "U+\x\+-\x\+" | |
128 | |
3893 | 129 " The 16 basic color names |
7 | 130 syn keyword cssColor contained aqua black blue fuchsia gray green lime maroon navy olive purple red silver teal yellow |
3893 | 131 |
132 " 130 more color names | |
133 syn keyword cssColor contained aliceblue antiquewhite aquamarine azure | |
134 syn keyword cssColor contained beige bisque blanchedalmond blueviolet brown burlywood | |
135 syn keyword cssColor contained cadetblue chartreuse chocolate coral cornflowerblue cornsilk crimson cyan | |
136 syn match cssColor contained /dark\(blue\|cyan\|goldenrod\|gray\|green\|grey\|khaki\)/ | |
137 syn match cssColor contained /dark\(magenta\|olivegreen\|orange\|orchid\|red\|salmon\|seagreen\)/ | |
138 syn match cssColor contained /darkslate\(blue\|gray\|grey\)/ | |
139 syn match cssColor contained /dark\(turquoise\|violet\)/ | |
140 syn keyword cssColor contained deeppink deepskyblue dimgray dimgrey dodgerblue firebrick | |
141 syn keyword cssColor contained floralwhite forestgreen gainsboro ghostwhite gold | |
142 syn keyword cssColor contained goldenrod greenyellow grey honeydew hotpink | |
143 syn keyword cssColor contained indianred indigo ivory khaki lavender lavenderblush lawngreen | |
144 syn keyword cssColor contained lemonchiffon limegreen linen magenta | |
145 syn match cssColor contained /light\(blue\|coral\|cyan\|goldenrodyellow\|gray\|green\)/ | |
146 syn match cssColor contained /light\(grey\|pink\|salmon\|seagreen\|skyblue\|yellow\)/ | |
147 syn match cssColor contained /light\(slategray\|slategrey\|steelblue\)/ | |
148 syn match cssColor contained /medium\(aquamarine\|blue\|orchid\|purple\|seagreen\)/ | |
149 syn match cssColor contained /medium\(slateblue\|springgreen\|turquoise\|violetred\)/ | |
150 syn keyword cssColor contained midnightblue mintcream mistyrose moccasin navajowhite | |
151 syn keyword cssColor contained oldlace olivedrab orange orangered orchid | |
152 syn match cssColor contained /pale\(goldenrod\|green\|turquoise\|violetred\)/ | |
153 syn keyword cssColor contained papayawhip peachpuff peru pink plum powderblue | |
154 syn keyword cssColor contained rosybrown royalblue saddlebrown salmon sandybrown | |
155 syn keyword cssColor contained seagreen seashell sienna skyblue slateblue | |
156 syn keyword cssColor contained slategray slategrey snow springgreen steelblue tan | |
157 syn keyword cssColor contained thistle tomato turquoise violet wheat | |
158 syn keyword cssColor contained whitesmoke yellowgreen | |
159 | |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
160 " FIXME: These are actually case-insensitive too, but (a) specs recommend using |
7 | 161 " mixed-case (b) it's hard to highlight the word `Background' correctly in |
162 " all situations | |
163 syn case match | |
164 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 | |
165 syn case ignore | |
3830 | 166 |
167 syn match cssImportant contained "!\s*important\>" | |
168 | |
7 | 169 syn match cssColor contained "\<transparent\>" |
170 syn match cssColor contained "\<white\>" | |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
171 syn match cssColor contained "#[0-9A-Fa-f]\{3\}\>" contains=cssUnitDecorators |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
172 syn match cssColor contained "#[0-9A-Fa-f]\{6\}\>" contains=cssUnitDecorators |
7 | 173 |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
174 syn region cssURL contained matchgroup=cssFunctionName start="\<url\s*(" end=")" oneline extend |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
175 syn region cssFunction contained matchgroup=cssFunctionName start="\<\(rgb\|clip\|attr\|counter\|rect\|cubic-bezier\|steps\)\s*(" end=")" oneline contains=cssValueInteger,cssValueNumber,cssValueLength,cssFunctionComma |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
176 syn region cssFunction contained matchgroup=cssFunctionName start="\<\(rgba\|hsl\|hsla\|color-stop\|from\|to\)\s*(" end=")" oneline contains=cssColor,cssValueInteger,cssValueNumber,cssValueLength,cssFunctionComma,cssFunction |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
177 syn region cssFunction contained matchgroup=cssFunctionName start="\<\(linear-\|radial-\)\=\gradient\s*(" end=")" oneline contains=cssColor,cssValueInteger,cssValueNumber,cssValueLength,cssFunction,cssGradientAttr,cssFunctionComma |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
178 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 |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
179 syn keyword cssGradientAttr contained top bottom left right cover center middle ellipse at |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
180 syn match cssFunctionComma contained "," |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
181 |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
182 " Common Prop and Attr |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
183 syn keyword cssCommonAttr contained auto none inherit all default normal |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
184 syn keyword cssCommonAttr contained top bottom center stretch hidden visible |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
185 "------------------------------------------------ |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
186 " CSS Animations |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
187 " http://www.w3.org/TR/css3-animations/ |
5555 | 188 syn match cssAnimationProp contained "\<animation\(-\(delay\|direction\|duration\|fill-mode\|name\|play-state\|timing-function\|iteration-count\)\)\=\>" |
7 | 189 |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
190 " animation-direction attributes |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
191 syn keyword cssAnimationAttr contained alternate reverse |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
192 syn match cssAnimationAttr contained "\<alternate-reverse\>" |
7 | 193 |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
194 " animation-fill-mode attributes |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
195 syn keyword cssAnimationAttr contained forwards backwards both |
3830 | 196 |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
197 " animation-play-state attributes |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
198 syn keyword cssAnimationAttr contained running paused |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
199 "------------------------------------------------ |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
200 " CSS Backgrounds and Borders Module Level 3 |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
201 " http://www.w3.org/TR/css3-background/ |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
202 syn match cssBackgroundProp contained "\<background\(-\(attachment\|clip\|color\|image\|origin\|position\|repeat\|size\)\)\=\>" |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
203 " background-attachment attributes |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
204 syn keyword cssBackgroundAttr contained scroll fixed local |
3830 | 205 |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
206 " background-position attributes |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
207 syn keyword cssBackgroundAttr contained left center right top bottom |
3830 | 208 |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
209 " background-repeat attributes |
3830 | 210 syn match cssBackgroundAttr contained "\<no-repeat\>" |
211 syn match cssBackgroundAttr contained "\<repeat\(-[xy]\)\=\>" | |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
212 syn keyword cssBackgroundAttr contained space round |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
213 |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
214 " background-size attributes |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
215 syn keyword cssBackgroundAttr contained cover contain |
3830 | 216 |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
217 syn match cssBorderProp contained "\<border\(-\(top\|right\|bottom\|left\)\)\=\(-\(width\|color\|style\)\)\=\>" |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
218 syn match cssBorderProp contained "\<border\(-\(top\|bottom\)-\(left\|right\)\)\=-radius\>" |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
219 syn match cssBorderProp contained "\<border-image\(-\(outset\|repeat\|slice\|source\|width\)\)\=\>" |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
220 syn match cssBorderProp contained "\<box-decoration-break\>" |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
221 syn match cssBorderProp contained "\<box-shadow\>" |
3830 | 222 |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
223 " border-image attributes |
5555 | 224 syn keyword cssBorderAttr contained stretch round space fill |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
225 |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
226 " border-style attributes |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
227 syn keyword cssBorderAttr contained dotted dashed solid double groove ridge inset outset |
3830 | 228 |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
229 " border-width attributes |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
230 syn keyword cssBorderAttr contained thin thick medium |
3830 | 231 |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
232 " box-decoration-break attributes |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
233 syn keyword cssBorderAttr contained clone slice |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
234 "------------------------------------------------ |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
235 |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
236 syn match cssBoxProp contained "\<padding\(-\(top\|right\|bottom\|left\)\)\=\>" |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
237 syn match cssBoxProp contained "\<margin\(-\(top\|right\|bottom\|left\)\)\=\>" |
3830 | 238 syn match cssBoxProp contained "\<overflow\(-\(x\|y\|style\)\)\=\>" |
5555 | 239 syn match cssBoxProp contained "\<rotation\(-point\)\=\>" |
3830 | 240 syn keyword cssBoxAttr contained visible hidden scroll auto |
241 syn match cssBoxAttr contained "\<no-\(display\|content\)\>" | |
242 | |
243 syn keyword cssColorProp contained opacity | |
244 syn match cssColorProp contained "\<color-profile\>" | |
245 syn match cssColorProp contained "\<rendering-intent\>" | |
246 | |
247 | |
248 syn match cssDimensionProp contained "\<\(min\|max\)-\(width\|height\)\>" | |
249 syn keyword cssDimensionProp contained height | |
250 syn keyword cssDimensionProp contained width | |
251 | |
252 " shadow and sizing are in other property groups | |
253 syn match cssFlexibleBoxProp contained "\<box-\(align\|direction\|flex\|ordinal-group\|orient\|pack\|shadow\|sizing\)\>" | |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
254 syn keyword cssFlexibleBoxAttr contained start end baseline |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
255 syn keyword cssFlexibleBoxAttr contained reverse |
3830 | 256 syn keyword cssFlexibleBoxAttr contained single mulitple |
257 syn keyword cssFlexibleBoxAttr contained horizontal | |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
258 syn match cssFlexibleBoxAttr contained "\<vertical\(-align\)\@!\>" "escape vertical-align |
3830 | 259 syn match cssFlexibleBoxAttr contained "\<\(inline\|block\)-axis\>" |
260 | |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
261 " CSS Fonts Module Level 3 |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
262 " http://www.w3.org/TR/css-fonts-3/ |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
263 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\)\)\=\>" |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
264 " font attributes |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
265 syn keyword cssFontAttr contained icon menu caption |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
266 syn match cssFontAttr contained "\<small-\(caps\|caption\)\>" |
7 | 267 syn match cssFontAttr contained "\<message-box\>" |
268 syn match cssFontAttr contained "\<status-bar\>" | |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
269 syn keyword cssFontAttr contained larger smaller |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
270 syn match cssFontAttr contained "\<\(x\{1,2\}-\)\=\(large\|small\)\>" |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
271 |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
272 " font-family attributes |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
273 syn match cssFontAttr contained "\<\(sans-\)\=serif\>" |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
274 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 Unicode Verdana Webdings Wingdings York Zapf |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
275 syn keyword cssFontAttr contained cursive fantasy monospace |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
276 |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
277 " font-feature-settings attributes |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
278 syn keyword cssFontAttr contained on off |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
279 |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
280 " font-stretch attributes |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
281 syn match cssFontAttr contained "\<\(\(ultra\|extra\|semi\)-\)\=\(condensed\|expanded\)\>" |
3830 | 282 |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
283 " font-style attributes |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
284 syn keyword cssFontAttr contained italic oblique |
3830 | 285 |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
286 " font-variant-caps attributes |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
287 syn match cssFontAttr contained "\<\(all-\)\=\(small-\|petite-\|titling-\)caps\>" |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
288 syn keyword cssFontAttr contained unicase |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
289 |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
290 " font-weight attributes |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
291 syn keyword cssFontAttr contained bold bolder lighter |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
292 "------------------------------------------------ |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
293 |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
294 " Webkit specific property/attributes |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
295 syn match cssFontProp contained "\<font-smooth\>" |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
296 syn match cssFontAttr contained "\<\(subpixel-\)\=\antialiased\>" |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
297 |
5555 | 298 |
299 " CSS Multi-column Layout Module | |
300 " http://www.w3.org/TR/css3-multicol/ | |
301 syn match cssMultiColumnProp contained "\<break-\(after\|before\|inside\)\>" | |
302 syn match cssMultiColumnProp contained "\<column-\(count\|fill\|gap\|rule\(-\(color\|style\|width\)\)\=\|span\|width\)\>" | |
303 syn keyword cssMultiColumnProp contained columns | |
304 syn keyword cssMultiColumnAttr contained balance medium | |
305 syn keyword cssMultiColumnAttr contained always avoid left right page column | |
306 syn match cssMultiColumnAttr contained "\<avoid-\(page\|column\)\>" | |
307 | |
308 " http://www.w3.org/TR/css3-break/#page-break | |
309 syn match cssMultiColumnProp contained "\<page\(-break-\(before\|after\|inside\)\)\=\>" | |
310 | |
311 " TODO find following items in w3c docs. | |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
312 syn keyword cssGeneratedContentProp contained quotes crop |
3830 | 313 syn match cssGeneratedContentProp contained "\<counter-\(reset\|increment\)\>" |
314 syn match cssGeneratedContentProp contained "\<move-to\>" | |
315 syn match cssGeneratedContentProp contained "\<page-policy\>" | |
316 syn match cssGeneratedContentAttr contained "\<\(no-\)\=\(open\|close\)-quote\>" | |
317 | |
318 syn match cssGridProp contained "\<grid-\(columns\|rows\)\>" | |
319 | |
320 syn match cssHyerlinkProp contained "\<target\(-\(name\|new\|position\)\)\=\>" | |
321 | |
322 syn match cssListProp contained "\<list-style\(-\(type\|position\|image\)\)\=\>" | |
323 syn match cssListAttr contained "\<\(lower\|upper\)-\(roman\|alpha\|greek\|latin\)\>" | |
324 syn match cssListAttr contained "\<\(hiragana\|katakana\)\(-iroha\)\=\>" | |
325 syn match cssListAttr contained "\<\(decimal\(-leading-zero\)\=\|cjk-ideographic\)\>" | |
326 syn keyword cssListAttr contained disc circle square hebrew armenian georgian | |
327 syn keyword cssListAttr contained inside outside | |
328 | |
329 syn keyword cssPositioningProp contained bottom clear clip display float left | |
330 syn keyword cssPositioningProp contained position right top visibility | |
331 syn match cssPositioningProp contained "\<z-index\>" | |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
332 syn keyword cssPositioningAttr contained block compact |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
333 syn match cssPositioningAttr contained "\<table\(-\(row-group\|\(header\|footer\)-group\|row\|column\(-group\)\=\|cell\|caption\)\)\=\>" |
3830 | 334 syn keyword cssPositioningAttr contained left right both |
335 syn match cssPositioningAttr contained "\<list-item\>" | |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
336 syn match cssPositioningAttr contained "\<inline\(-\(block\|box\|table\)\)\=\>" |
3830 | 337 syn keyword cssPositioningAttr contained static relative absolute fixed |
7 | 338 |
3830 | 339 syn keyword cssPrintAttr contained landscape portrait crop cross always avoid |
340 | |
341 syn match cssTableProp contained "\<\(caption-side\|table-layout\|border-collapse\|border-spacing\|empty-cells\)\>" | |
342 syn keyword cssTableAttr contained fixed collapse separate show hide once always | |
343 | |
344 | |
345 syn keyword cssTextProp contained color direction | |
7 | 346 syn match cssTextProp "\<\(\(word\|letter\)-spacing\|text\(-\(decoration\|transform\|align\|index\|shadow\)\)\=\|vertical-align\|unicode-bidi\|line-height\)\>" |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
347 syn match cssTextProp contained "\<text-\(justify\|outline\|warp\|align-last\|size-adjust\|rendering\|stroke\|indent\)\>" |
3830 | 348 syn match cssTextProp contained "\<word-\(break\|\wrap\)\>" |
349 syn match cssTextProp contained "\<white-space\>" | |
350 syn match cssTextProp contained "\<hanging-punctuation\>" | |
351 syn match cssTextProp contained "\<punctuation-trim\>" | |
7 | 352 syn match cssTextAttr contained "\<line-through\>" |
353 syn match cssTextAttr contained "\<\(text-\)\=\(top\|bottom\)\>" | |
3830 | 354 syn keyword cssTextAttr contained ltr rtl embed nowrap |
7 | 355 syn keyword cssTextAttr contained underline overline blink sub super middle |
3830 | 356 syn keyword cssTextAttr contained capitalize uppercase lowercase |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
357 syn keyword cssTextAttr contained justify baseline sub super |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
358 syn keyword cssTextAttr contained optimizeLegibility optimizeSpeed |
3830 | 359 syn match cssTextAttr contained "\<pre\(-\(line\|wrap\)\)\=\>" |
360 syn match cssTextAttr contained "\<\(allow\|force\)-end\>" | |
361 syn keyword cssTextAttr contained start end adjacent | |
362 syn match cssTextAttr contained "\<inter-\(word\|ideographic\|cluster\)\>" | |
363 syn keyword cssTextAttr contained distribute kashida first last | |
364 syn keyword cssTextAttr contained clip ellipsis unrestricted suppress | |
365 syn match cssTextAttr contained "\<break-all\>" | |
366 syn match cssTextAttr contained "\<break-word\>" | |
367 syn keyword cssTextAttr contained hyphenate | |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
368 syn match cssTextAttr contained "\<bidi-override\>" |
3830 | 369 |
370 syn match cssTransformProp contained "\<transform\(-\(origin\|style\)\)\=\>" | |
371 syn match cssTransformProp contained "\<perspective\(-origin\)\=\>" | |
372 syn match cssTransformProp contained "\<backface-visibility\>" | |
7 | 373 |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
374 " CSS Transitions |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
375 " http://www.w3.org/TR/css3-transitions/ |
3830 | 376 syn match cssTransitionProp contained "\<transition\(-\(delay\|duration\|property\|timing-function\)\)\=\>" |
7 | 377 |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
378 " transition-time-function attributes |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
379 syn match cssTransitionAttr contained "\<linear\(-gradient\)\@!\>" |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
380 syn match cssTransitionAttr contained "\<ease\(-\(in-out\|out\|in\)\)\=\>" |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
381 syn match cssTransitionAttr contained "\<step\(-start\|-end\)\=\>" |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
382 "------------------------------------------------ |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
383 " CSS Basic User Interface Module Level 3 (CSS3 UI) |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
384 " http://www.w3.org/TR/css3-ui/ |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
385 syn match cssUIProp contained "\<box-sizing\>" |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
386 syn match cssUIAttr contained "\<\(content\|padding\|border\)\(-box\)\=\>" |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
387 |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
388 syn keyword cssUIProp contained cursor |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
389 syn match cssUIAttr contained "\<\(\([ns]\=[ew]\=\)\|col\|row\|nesw\|nwse\)-resize\>" |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
390 syn keyword cssUIAttr contained crosshair help move pointer alias copy |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
391 syn keyword cssUIAttr contained progress wait text cell move |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
392 syn match cssUIAttr contained "\<context-menu\>" |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
393 syn match cssUIAttr contained "\<no-drop\>" |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
394 syn match cssUIAttr contained "\<not-allowed\>" |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
395 syn match cssUIAttr contained "\<all-scroll\>" |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
396 syn match cssUIAttr contained "\<\(vertical-\)\=text\>" |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
397 syn match cssUIAttr contained "\<zoom\(-in\|-out\)\=\>" |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
398 |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
399 syn match cssUIProp contained "\<ime-mode\>" |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
400 syn keyword cssUIAttr contained active inactive disabled |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
401 |
3830 | 402 syn match cssUIProp contained "\<nav-\(down\|index\|left\|right\|up\)\=\>" |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
403 syn match cssUIProp contained "\<outline\(-\(width\|style\|color\|offset\)\)\=\>" |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
404 syn keyword cssUIAttr contained invert |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
405 |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
406 syn keyword cssUIProp contained icon resize |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
407 syn keyword cssUIAttr contained both horizontal vertical |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
408 |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
409 syn match cssUIProp contained "\<text-overflow\>" |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
410 syn keyword cssUIAttr contained clip ellipsis |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
411 |
5555 | 412 " Already highlighted Props: font content |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
413 "------------------------------------------------ |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
414 " Webkit/iOS specific attributes |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
415 syn match cssUIAttr contained '\(preserve-3d\)' |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
416 " IE specific attributes |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
417 syn match cssIEUIAttr contained '\(bicubic\)' |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
418 |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
419 " Webkit/iOS specific properties |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
420 syn match cssUIProp contained '\(tap-highlight-color\|user-select\|touch-callout\)' |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
421 " IE specific properties |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
422 syn match cssIEUIProp contained '\(interpolation-mode\|zoom\|filter\)' |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
423 |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
424 " Webkit/Firebox specific properties/attributes |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
425 syn keyword cssUIProp contained appearance |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
426 syn keyword cssUIAttr contained window button field icon document menu |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
427 |
7 | 428 |
429 syn match cssAuralProp contained "\<\(pause\|cue\)\(-\(before\|after\)\)\=\>" | |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
430 syn match cssAuralProp contained "\<\(play-during\|speech-rate\|voice-family\|pitch\(-range\)\=\|speak\(-\(punctuation\|numeral\|header\)\)\=\)\>" |
7 | 431 syn keyword cssAuralProp contained volume during azimuth elevation stress richness |
432 syn match cssAuralAttr contained "\<\(x-\)\=\(soft\|loud\)\>" | |
433 syn keyword cssAuralAttr contained silent | |
434 syn match cssAuralAttr contained "\<spell-out\>" | |
435 syn keyword cssAuralAttr contained non mix | |
436 syn match cssAuralAttr contained "\<\(left\|right\)-side\>" | |
437 syn match cssAuralAttr contained "\<\(far\|center\)-\(left\|center\|right\)\>" | |
438 syn keyword cssAuralAttr contained leftwards rightwards behind | |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
439 syn keyword cssAuralAttr contained below level above lower higher |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
440 syn match cssAuralAttr contained "\<\(x-\)\=\(slow\|fast\|low\|high\)\>" |
7 | 441 syn keyword cssAuralAttr contained faster slower |
442 syn keyword cssAuralAttr contained male female child code digits continuous | |
3830 | 443 |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
444 " mobile text |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
445 syn match cssMobileTextProp contained "\<text-size-adjust\>" |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
446 |
3830 | 447 |
7 | 448 |
449 syn match cssBraces contained "[{}]" | |
450 syn match cssError contained "{@<>" | |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
451 syn region cssDefinition transparent matchgroup=cssBraces start='{' end='}' contains=cssAttrRegion,css.*Prop,cssComment,cssValue.*,cssColor,cssURL,cssImportant,cssError,cssStringQ,cssStringQQ,cssFunction,cssUnicodeEscape,cssVendor,cssDefinition,cssHacks keepend fold |
7 | 452 syn match cssBraceError "}" |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
453 syn match cssAttrComma "," |
7 | 454 |
3830 | 455 " Pseudo class |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
456 " http://www.w3.org/TR/css3-selectors/ |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
457 syn match cssPseudoClass ":[A-Za-z0-9_-]*" contains=cssNoise,cssPseudoClassId,cssUnicodeEscape,cssVendor,cssPseudoClassFn |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
458 syn keyword cssPseudoClassId contained link visited active hover before after left right |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
459 syn keyword cssPseudoClassId contained root empty target enable disabled checked invalid |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
460 syn match cssPseudoClassId contained "\<first-\(line\|letter\)\>" |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
461 syn match cssPseudoClassId contained "\<\(first\|last\|only\)-\(of-type\|child\)\>" |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
462 syn region cssPseudoClassFn contained matchgroup=cssFunctionName start="\<\(not\|lang\|\(nth\|nth-last\)-\(of-type\|child\)\)(" end=")" |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
463 " ------------------------------------ |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
464 " Vendor specific properties |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
465 syn match cssPseudoClassId contained "\<selection\>" |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
466 syn match cssPseudoClassId contained "\<focus\(-inner\)\=\>" |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
467 syn match cssPseudoClassId contained "\<\(input-\)\=placeholder\>" |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
468 |
7 | 469 |
3830 | 470 " Comment |
5369
5bfefa47d4a0
Fix problem with 'iskeyword' in CSS syntax.
Bram Moolenaar <bram@vim.org>
parents:
5362
diff
changeset
|
471 syn region cssComment start="/\*" end="\*/" contains=@Spell fold |
7 | 472 |
473 syn match cssUnicodeEscape "\\\x\{1,6}\s\?" | |
5555 | 474 syn match cssSpecialCharQQ +\\\\\|\\"+ contained |
475 syn match cssSpecialCharQ +\\\\\|\\'+ contained | |
7 | 476 syn region cssStringQQ start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=cssUnicodeEscape,cssSpecialCharQQ |
477 syn region cssStringQ start=+'+ skip=+\\\\\|\\'+ end=+'+ contains=cssUnicodeEscape,cssSpecialCharQ | |
3830 | 478 |
479 " Vendor Prefix | |
480 syn match cssVendor contained "\(-\(webkit\|moz\|o\|ms\)-\)" | |
481 | |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
482 " Various CSS Hack characters |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
483 " In earlier versions of IE (6 and 7), one can prefix property names |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
484 " with a _ or * to isolate those definitions to particular versions of IE |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
485 " This is purely decorative and therefore we assign to the same highlight |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
486 " group to cssVendor, for more information: |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
487 " http://www.paulirish.com/2009/browser-specific-css-hacks/ |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
488 syn match cssHacks contained /\(_\|*\)/ |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
489 |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
490 " Misc highlight groups |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
491 syntax match cssUnitDecorators /\(#\|-\|%\|mm\|cm\|in\|pt\|pc\|em\|ex\|px\|rem\|dpi\|dppx\|dpcm\|Hz\|kHz\|s\|ms\|deg\|grad\|rad\)/ contained |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
492 syntax match cssNoise contained /\(:\|;\|\/\)/ |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
493 |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
494 " Attr Enhance |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
495 " Some keywords are both Prop and Attr, so we have to handle them |
5555 | 496 syn region cssAttrRegion start=/:/ end=/;/ contained keepend contains=css.*Attr,cssColor,cssImportant,cssValue.*,cssFunction,cssString.*,cssURL,cssComment,cssUnicodeEscape,cssVendor,cssError,cssAttrComma,cssNoise |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
497 |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
498 " Hack for transition |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
499 " The 'transition' Prop has Props after ':'. |
5555 | 500 syn region cssAttrRegion start=/transition\s*:/ end=/;/ contained keepend contains=css.*Prop,css.*Attr,cssColor,cssImportant,cssValue.*,cssFunction,cssString.*,cssURL,cssComment,cssUnicodeEscape,cssVendor,cssError,cssAttrComma,cssNoise |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
501 |
7 | 502 |
503 if main_syntax == "css" | |
504 syn sync minlines=10 | |
505 endif | |
506 | |
507 " Define the default highlighting. | |
508 " For version 5.7 and earlier: only when not done already | |
509 " For version 5.8 and later: only when an item doesn't have highlighting yet | |
510 if version >= 508 || !exists("did_css_syn_inits") | |
511 if version < 508 | |
512 let did_css_syn_inits = 1 | |
513 command -nargs=+ HiLink hi link <args> | |
514 else | |
515 command -nargs=+ HiLink hi def link <args> | |
516 endif | |
517 | |
518 HiLink cssComment Comment | |
3830 | 519 HiLink cssVendor Comment |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
520 HiLink cssHacks Comment |
7 | 521 HiLink cssTagName Statement |
3830 | 522 HiLink cssDeprecated Error |
7 | 523 HiLink cssSelectorOp Special |
524 HiLink cssSelectorOp2 Special | |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
525 HiLink cssAttrComma Special |
3830 | 526 |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
527 HiLink cssAnimationProp cssProp |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
528 HiLink cssBackgroundProp cssProp |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
529 HiLink cssBorderProp cssProp |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
530 HiLink cssBoxProp cssProp |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
531 HiLink cssColorProp cssProp |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
532 HiLink cssContentForPagedMediaProp cssProp |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
533 HiLink cssDimensionProp cssProp |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
534 HiLink cssFlexibleBoxProp cssProp |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
535 HiLink cssFontProp cssProp |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
536 HiLink cssGeneratedContentProp cssProp |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
537 HiLink cssGridProp cssProp |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
538 HiLink cssHyerlinkProp cssProp |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
539 HiLink cssLineboxProp cssProp |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
540 HiLink cssListProp cssProp |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
541 HiLink cssMarqueeProp cssProp |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
542 HiLink cssMultiColumnProp cssProp |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
543 HiLink cssPagedMediaProp cssProp |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
544 HiLink cssPositioningProp cssProp |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
545 HiLink cssPrintProp cssProp |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
546 HiLink cssRubyProp cssProp |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
547 HiLink cssSpeechProp cssProp |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
548 HiLink cssTableProp cssProp |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
549 HiLink cssTextProp cssProp |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
550 HiLink cssTransformProp cssProp |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
551 HiLink cssTransitionProp cssProp |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
552 HiLink cssUIProp cssProp |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
553 HiLink cssIEUIProp cssProp |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
554 HiLink cssAuralProp cssProp |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
555 HiLink cssRenderProp cssProp |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
556 HiLink cssMobileTextProp cssProp |
3830 | 557 |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
558 HiLink cssAnimationAttr cssAttr |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
559 HiLink cssBackgroundAttr cssAttr |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
560 HiLink cssBorderAttr cssAttr |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
561 HiLink cssBoxAttr cssAttr |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
562 HiLink cssContentForPagedMediaAttr cssAttr |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
563 HiLink cssDimensionAttr cssAttr |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
564 HiLink cssFlexibleBoxAttr cssAttr |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
565 HiLink cssFontAttr cssAttr |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
566 HiLink cssGeneratedContentAttr cssAttr |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
567 HiLink cssGridAttr cssAttr |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
568 HiLink cssHyerlinkAttr cssAttr |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
569 HiLink cssLineboxAttr cssAttr |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
570 HiLink cssListAttr cssAttr |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
571 HiLink cssMarginAttr cssAttr |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
572 HiLink cssMarqueeAttr cssAttr |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
573 HiLink cssMultiColumnAttr cssAttr |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
574 HiLink cssPaddingAttr cssAttr |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
575 HiLink cssPagedMediaAttr cssAttr |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
576 HiLink cssPositioningAttr cssAttr |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
577 HiLink cssGradientAttr cssAttr |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
578 HiLink cssPrintAttr cssAttr |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
579 HiLink cssRubyAttr cssAttr |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
580 HiLink cssSpeechAttr cssAttr |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
581 HiLink cssTableAttr cssAttr |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
582 HiLink cssTextAttr cssAttr |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
583 HiLink cssTransformAttr cssAttr |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
584 HiLink cssTransitionAttr cssAttr |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
585 HiLink cssUIAttr cssAttr |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
586 HiLink cssIEUIAttr cssAttr |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
587 HiLink cssAuralAttr cssAttr |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
588 HiLink cssRenderAttr cssAttr |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
589 HiLink cssCommonAttr cssAttr |
3830 | 590 |
7 | 591 HiLink cssPseudoClassId PreProc |
592 HiLink cssPseudoClassLang Constant | |
593 HiLink cssValueLength Number | |
594 HiLink cssValueInteger Number | |
595 HiLink cssValueNumber Number | |
596 HiLink cssValueAngle Number | |
597 HiLink cssValueTime Number | |
598 HiLink cssValueFrequency Number | |
599 HiLink cssFunction Constant | |
600 HiLink cssURL String | |
601 HiLink cssFunctionName Function | |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
602 HiLink cssFunctionComma Function |
7 | 603 HiLink cssColor Constant |
604 HiLink cssIdentifier Function | |
605 HiLink cssInclude Include | |
5369
5bfefa47d4a0
Fix problem with 'iskeyword' in CSS syntax.
Bram Moolenaar <bram@vim.org>
parents:
5362
diff
changeset
|
606 HiLink cssIncludeKeyword atKeyword |
7 | 607 HiLink cssImportant Special |
608 HiLink cssBraces Function | |
609 HiLink cssBraceError Error | |
610 HiLink cssError Error | |
611 HiLink cssUnicodeEscape Special | |
612 HiLink cssStringQQ String | |
613 HiLink cssStringQ String | |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
614 HiLink cssAttributeSelector String |
5369
5bfefa47d4a0
Fix problem with 'iskeyword' in CSS syntax.
Bram Moolenaar <bram@vim.org>
parents:
5362
diff
changeset
|
615 HiLink cssMedia atKeyword |
7 | 616 HiLink cssMediaType Special |
617 HiLink cssMediaComma Normal | |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
618 HiLink cssMediaKeyword Statement |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
619 HiLink cssMediaProp cssProp |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
620 HiLink cssMediaAttr cssAttr |
5369
5bfefa47d4a0
Fix problem with 'iskeyword' in CSS syntax.
Bram Moolenaar <bram@vim.org>
parents:
5362
diff
changeset
|
621 HiLink cssPage atKeyword |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
622 HiLink cssPagePseudo PreProc |
5555 | 623 HiLink cssPageMargin atKeyword |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
624 HiLink cssPageProp cssProp |
5369
5bfefa47d4a0
Fix problem with 'iskeyword' in CSS syntax.
Bram Moolenaar <bram@vim.org>
parents:
5362
diff
changeset
|
625 HiLink cssKeyFrame atKeyword |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
626 HiLink cssKeyFrameSelector Constant |
7 | 627 HiLink cssFontDescriptor Special |
628 HiLink cssFontDescriptorFunction Constant | |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
629 HiLink cssFontDescriptorProp cssProp |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
630 HiLink cssFontDescriptorAttr cssAttr |
7 | 631 HiLink cssUnicodeRange Constant |
1285 | 632 HiLink cssClassName Function |
5555 | 633 HiLink cssClassNameDot Function |
5362
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
634 HiLink cssProp StorageClass |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
635 HiLink cssAttr Constant |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
636 HiLink cssUnitDecorators Number |
ab1508486b12
Update runtime files. Add support for J.
Bram Moolenaar <bram@vim.org>
parents:
5239
diff
changeset
|
637 HiLink cssNoise Noise |
5369
5bfefa47d4a0
Fix problem with 'iskeyword' in CSS syntax.
Bram Moolenaar <bram@vim.org>
parents:
5362
diff
changeset
|
638 HiLink atKeyword Comment |
7 | 639 delcommand HiLink |
640 endif | |
641 | |
642 let b:current_syntax = "css" | |
643 | |
644 if main_syntax == 'css' | |
645 unlet main_syntax | |
646 endif | |
647 | |
3854 | 648 let &cpo = s:cpo_save |
649 unlet s:cpo_save | |
7 | 650 " vim: ts=8 |
651 |