Debian Codegraph @

editors/Stylus.tmbundle/Syntaxes/Stylus.tmLanguage

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3 <plist version="1.0">
4 <dict>
5 <key>fileTypes</key>
6 <array>
7 <string>styl</string>
8 <string>stylus</string>
9 </array>
10 <key>name</key>
11 <string>Stylus</string>
12 <key>patterns</key>
13 <array>
14 <dict>
15 <key>captures</key>
16 <dict>
17 <key>1</key>
18 <dict>
19 <key>name</key>
20 <string>punctuation.definition.comment.stylus</string>
21 </dict>
22 </dict>
23 <key>match</key>
24 <string>(?:^[ \t]+)?(\/\/).*$\n?</string>
25 <key>name</key>
26 <string>comment.line.stylus</string>
27 </dict>
28 <dict>
29 <key>begin</key>
30 <string>/\*</string>
31 <key>captures</key>
32 <dict>
33 <key>0</key>
34 <dict>
35 <key>name</key>
36 <string>punctuation.definition.comment.stylus</string>
37 </dict>
38 </dict>
39 <key>end</key>
40 <string>\*/</string>
41 <key>name</key>
42 <string>comment.block.stylus</string>
43 </dict>
44 <dict>
45 <key>captures</key>
46 <dict>
47 <key>1</key>
48 <dict>
49 <key>name</key>
50 <string>entity.name.function.stylus</string>
51 </dict>
52 </dict>
53 <key>match</key>
54 <string>(^[-a-zA-Z_][-\w]*)?(\()</string>
55 <key>name</key>
56 <string>meta.function.stylus</string>
57 </dict>
58 <dict>
59 <key>captures</key>
60 <dict>
61 <key>1</key>
62 <dict>
63 <key>name</key>
64 <string>punctuation.definition.entity.stylus</string>
65 </dict>
66 </dict>
67 <key>match</key>
68 <string>\.-?[_a-zA-Z]+[_a-zA-Z0-9-]*</string>
69 <key>name</key>
70 <string>entity.other.attribute-name.class.stylus</string>
71 </dict>
72 <dict>
73 <key>match</key>
74 <string>^ *&amp;</string>
75 <key>name</key>
76 <string>entity.language.stylus</string>
77 </dict>
78 <dict>
79 <key>match</key>
80 <string>(arguments)</string>
81 <key>name</key>
82 <string>variable.language.stylus</string>
83 </dict>
84 <dict>
85 <key>match</key>
86 <string>\b(.*)(?=\s*=)</string>
87 <key>name</key>
88 <string>variable.language.stylus</string>
89 </dict>
90 <dict>
91 <key>match</key>
92 <string>@([-\w]+)</string>
93 <key>name</key>
94 <string>keyword.stylus</string>
95 </dict>
96 <dict>
97 <key>captures</key>
98 <dict>
99 <key>1</key>
100 <dict>
101 <key>name</key>
102 <string>punctuation.definition.entity.stylus</string>
103 </dict>
104 </dict>
105 <key>match</key>
106 <string>(:+)\b(after|before|first-letter|first-line|selection)\b</string>
107 <key>name</key>
108 <string>entity.other.attribute-name.pseudo-element.stylus</string>
109 </dict>
110 <dict>
111 <key>captures</key>
112 <dict>
113 <key>1</key>
114 <dict>
115 <key>name</key>
116 <string>punctuation.definition.entity.stylus</string>
117 </dict>
118 </dict>
119 <key>match</key>
120 <string>(:)\b(active|hover|focus|target|link|any-link|local-link|visited|scope|current|past|future|dir|lang|enabled|disabled|checked|indeterminate|default|valid|invalid|in-range|out-of-range|required|optional|read-only|read-write|root|first-child|last-child|only-child|nth-child|nth-last-child|first-of-type|last-of-type|nth-of-type|nth-last-of-type|only-of-type|nth-match|nth-last-match|empty|not|column|nth-column|nth-last-column)\b</string>
121 <key>name</key>
122 <string>entity.other.attribute-name.pseudo-class.stylus</string>
123 </dict>
124 <dict>
125 <key>match</key>
126 <string>\b(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|datalist|dd|del|details|dfn|dialog|div|dl|dt|em|eventsource|fieldset|figure|figcaption|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|label|legend|li|link|map|mark|menu|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|samp|script|section|select|small|span|strike|strong|style|sub|summary|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)\b</string>
127 <key>name</key>
128 <string>entity.name.tag.stylus</string>
129 </dict>
130 <dict>
131 <key>captures</key>
132 <dict>
133 <key>1</key>
134 <dict>
135 <key>name</key>
136 <string>punctuation.definition.constant.stylus</string>
137 </dict>
138 </dict>
139 <key>match</key>
140 <string>(#)([0-9a-fA-F]{3}|[0-9a-fA-F]{6})\b</string>
141 <key>name</key>
142 <string>constant.other.color.rgb-value.stylus</string>
143 </dict>
144 <dict>
145 <key>captures</key>
146 <dict>
147 <key>1</key>
148 <dict>
149 <key>name</key>
150 <string>punctuation.definition.entity.stylus</string>
151 </dict>
152 </dict>
153 <key>match</key>
154 <string>(#)[a-zA-Z][a-zA-Z0-9_-]*</string>
155 <key>name</key>
156 <string>entity.other.attribute-name.id.stylus</string>
157 </dict>
158 <dict>
159 <key>match</key>
160 <string>(-webkit-|-moz\-|-ms-|-o-)</string>
161 <key>name</key>
162 <string>meta.vendor-prefix.stylus</string>
163 </dict>
164 <dict>
165 <key>match</key>
166 <string>(\b|\s)(!important|for|in|return|true|false|null|if|else|unless|return)\b</string>
167 <key>name</key>
168 <string>keyword.control.stylus</string>
169 </dict>
170 <dict>
171 <key>match</key>
172 <string>((?:!|~|\+|-|(?:\*)?\*|\/|%|(?:\.)\.\.|&lt;|&gt;|(?:=|:|\?|\+|-|\*|\/|%|&lt;|&gt;)?=|!=)|\b(?:in|is(?:nt)?|not)\b)</string>
173 <key>name</key>
174 <string>keyword.operator.stylus</string>
175 </dict>
176 <dict>
177 <key>begin</key>
178 <string>"</string>
179 <key>end</key>
180 <string>"</string>
181 <key>name</key>
182 <string>string.quoted.double.stylus</string>
183 </dict>
184 <dict>
185 <key>begin</key>
186 <string>'</string>
187 <key>end</key>
188 <string>'</string>
189 <key>name</key>
190 <string>string.quoted.single.stylus</string>
191 </dict>
192 <dict>
193 <key>comment</key>
194 <string>http://www.w3.org/TR/CSS21/syndata.html#value-def-color</string>
195 <key>match</key>
196 <string>\b(aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white(?!-)|yellow)\b</string>
197 <key>name</key>
198 <string>support.constant.color.w3c-standard-color-name.stylus</string>
199 </dict>
200 <dict>
201 <key>match</key>
202 <string>(\b(?i:arial|century|comic|courier|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace)\b)</string>
203 <key>name</key>
204 <string>support.constant.font-name.stylus</string>
205 </dict>
206 <dict>
207 <key>captures</key>
208 <dict>
209 <key>1</key>
210 <dict>
211 <key>name</key>
212 <string>keyword.other.unit.stylus</string>
213 </dict>
214 </dict>
215 <key>match</key>
216 <string>(?&lt;![a-zA-Z])(?x)
217 (?:-|\+)?(?:(?:[0-9]+(?:\.[0-9]+)?)|(?:\.[0-9]+))
218 ((?:px|pt|ch|cm|mm|in|r?em|ex|pc|deg|g?rad|dpi|dpcm|s)\b|%)?</string>
219 <key>name</key>
220 <string>constant.numeric.stylus</string>
221 </dict>
222 <dict>
223 <key>match</key>
224 <string>\b(alignment-adjust|alignment-baseline|animation|animation-delay|animation-direction|animation-duration|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|appearance|azimuth|backface-visibility|background|background-attachment|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|baseline-shift|binding|bleed|bookmark-label|bookmark-level|bookmark-state|bookmark-target|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-decoration-break|box-shadow|box-sizing|break-after|break-before|break-inside|caption-side|clear|clip|color|color-profile|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|crop|cue|cue-after|cue-before|cursor|direction|display|dominant-baseline|drop-initial-after-adjust|drop-initial-after-align|drop-initial-before-adjust|drop-initial-before-align|drop-initial-size|drop-initial-value|elevation|empty-cells|fit|fit-position|flex-align|flex-flow|flex-line-pack|flex-order|flex-pack|float|float-offset|font|font-family|font-size|font-size-adjust|font-smoothing|font-stretch|font-style|font-variant|font-weight|grid-columns|grid-rows|hanging-punctuation|height|hyphenate-after|hyphenate-before|hyphenate-character|hyphenate-lines|hyphenate-resource|hyphens|icon|image-orientation|image-rendering|image-resolution|inline-box-align|left|letter-spacing|line-break|line-height|line-stacking|line-stacking-ruby|line-stacking-shift|line-stacking-strategy|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|marker-offset|marks|marquee-direction|marquee-loop|marquee-play-count|marquee-speed|marquee-style|max-height|max-width|min-height|min-width|move-to|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|orphans|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-style|overflow-wrap|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page|page-break-after|page-break-before|page-break-inside|page-policy|pause|pause-after|pause-before|perspective|perspective-origin|phonemes|pitch|pitch-range|play-during|pointer-events|position|presentation-level|punctuation-trim|quotes|rendering-intent|resize|rest|rest-after|rest-before|richness|right|rotation|rotation-point|ruby-align|ruby-overhang|ruby-position|ruby-span|size|speak|speak-header|speak-numeral|speak-punctuation|speech-rate|src|stress|string-set|tab-size|table-layout|target|target-name|target-new|target-position|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-skip|text-decoration-style|text-emphasis|text-emphasis-color|text-emphasis-position|text-emphasis-style|text-height|text-indent|text-justify|text-outline|text-shadow|text-space-collapse|text-transform|text-underline-position|text-wrap|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|vertical-align|visibility|voice-balance|voice-duration|voice-family|voice-pitch|voice-pitch-range|voice-rate|voice-stress|voice-volume|volume|white-space|widows|width|word-break|word-spacing|word-wrap|z-index)\b(?=\:|\s\s*)</string>
225 <key>name</key>
226 <string>support.type.property-name.stylus</string>
227 </dict>
228 <dict>
229 <key>comment</key>
230 <string>http://dev.w3.org/csswg/css3-transitions/#properties-from-css-</string>
231 <key>match</key>
232 <string>\b(background-color|background-position|border-bottom-color|border-bottom-width|border-left-color|border-left-width|border-right-color|border-right-width|border-spacing|border-top-color|border-top-width|bottom|clip|color(-stop)?|crop css3-content will likely advance slower than this specification, in which case this definition should move there|font-size|font-weight|height|left|letter-spacing|line-height|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|min-height|min-width|opacity|outline-color|outline-offset|outline-width|padding-bottom|padding-left|padding-right|padding-top|right|text-indent|text-shadow|top|vertical-align|visibility|width|word-spacing|z-index)\b(?!\:)</string>
233 <key>name</key>
234 <string>support.constant.transitionable-property-value.stylus</string>
235 </dict>
236 <dict>
237 <key>match</key>
238 <string>\b(absolute|all(-scroll)?|alternate|always|antialiased|armenian|auto|avoid|baseline|below|bidi-override|block|bold|bolder|border-box|both|bottom|break-all|break-word|capitalize|center|char|circle|cjk-ideographic|col-resize|collapse|content-box|crosshair|dashed|decimal-leading-zero|decimal|default|disabled|disc|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease(-(in(-out)?|out))?|ellipsis|fill|fixed|format|geometricPrecision|georgian|groove|hand|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|inactive|infinite|inherit|inline-block|inline|inset|inside|inter-ideograph|inter-word|italic|justify|katakana-iroha|katakana|keep-all|larger|left|lighter|line-edge|line-through|line|linear(-gradient)?|list-item|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|medium|middle|move|n-resize|ne-resize|newspaper|no-drop|no-repeat|nw-resize|none|normal|not-allowed|nowrap|oblique|optimize(Legibility|Quality|Speed)|outset|outside|overline|padding-box|painted|pointer|pre(-(wrap|line))?|progress|relative|repeat-x|repeat-y|repeat|right|ridge|row-resize|rtl|s-resize|scroll|se-resize|separate|small-caps|smaller|solid|square|static|strict|stroke|sub|subpixel-antialiased|super|sw-resize|table-footer-group|table-header-group|tb-rl|text-bottom|text-top|text|thick|thin|top|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|url|vertical(-(ideographic|text))?|visible(Painted|Fill|Stroke)?|w-resize|wait|whitespace|((xx?-)?(small|large))|zero)\b</string>
239 <key>name</key>
240 <string>support.constant.property-value.stylus</string>
241 </dict>
242 </array>
243 <key>scopeName</key>
244 <string>source.stylus</string>
245 <key>uuid</key>
246 <string>60519324-6A3A-4382-9E0B-546993A3869A</string>
247 </dict>
248 </plist>