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