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