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