textpow1x 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- textpow1x (1.2.0)
4
+ textpow1x (1.2.1)
5
5
  plist (>= 3.0.1)
6
6
 
7
7
  GEM
@@ -1,10 +1,11 @@
1
1
  Read {TextMate}[http://macromates.com/] syntax files and parse text with them.
2
2
 
3
3
  Improvements over old textpow:
4
- - Ruby 1.8 and 1.9 support
5
- - Tested, documented, refactored and made +faster+
6
- - Added tons of syntax files (li/textpow/syntax)
7
- - Most included syntaxes work out of the box
4
+
5
+ * Ruby 1.8 and 1.9 support
6
+ * Tested, documented, refactored and made +faster+
7
+ * Added tons of syntax files {lib/textpow/syntax}[https://github.com/grosser/textpow/tree/master/lib/textpow/syntax]
8
+ * Most nested ("include") syntaxes work out of the box
8
9
 
9
10
  == INSTALL:
10
11
 
@@ -15,18 +16,20 @@ Install oniguruma
15
16
 
16
17
  # Ubuntu
17
18
  sudo apt-get -y install libonig-dev
18
- gem install oniguruma
19
19
 
20
- # OsX (no idea if this works...)
21
- port install oniguruma4
20
+ # OSX via brew or port
21
+ brew install onigumura
22
+ port install oniguruma5
22
23
 
24
+ # Then
25
+ gem install oniguruma
23
26
 
24
27
  == USAGE:
25
28
 
26
29
  1. Load a Syntax File {list of included syntax}[https://github.com/grosser/textpow/tree/master/lib/textpow/syntax]
27
30
 
28
31
  require 'textpow'
29
- syntax = Textpow.syntax('ruby') # or Textpow::Syntax.load(syntax_file)
32
+ syntax = Textpow.syntax('ruby') # or 'source.ruby' or 'lib/textpow/syntax/source.ruby.syntax'
30
33
 
31
34
  2. Initialize a processor:
32
35
 
data/Rakefile CHANGED
@@ -6,11 +6,8 @@ task :default do
6
6
  end
7
7
 
8
8
  desc "Convert a plist to a .syntax file"
9
- task :convert, :file do |t,args|
10
- require 'plist'
11
- require 'yaml'
12
- yaml = Plist.parse_xml(args[:file]).to_yaml
13
- File.open('out.syntax','w'){|f| f.write(yaml) }
9
+ task :convert, :in, :out do |t,args|
10
+ convert(args[:in], args[:out] || 'out.syntax')
14
11
  end
15
12
 
16
13
  rule /^version:bump:.*/ do |t|
@@ -26,3 +23,21 @@ rule /^version:bump:.*/ do |t|
26
23
 
27
24
  sh "bundle && git add #{file} Gemfile.lock && git commit -m 'bump version to #{new_version}'"
28
25
  end
26
+
27
+ desc "update syntaxes from their original source"
28
+ task :update_syntax do
29
+ {
30
+ 'source.scss' => 'https://raw.github.com/kuroir/SCSS.tmbundle/master/Syntaxes/SCSS.tmLanguage'
31
+ }.each do |scope_name, url|
32
+ `curl '#{url}' > temp.plist`
33
+ convert('temp.plist', "lib/textpow/syntax/#{scope_name}.syntax")
34
+ `rm temp.plist`
35
+ end
36
+ end
37
+
38
+ def convert(from, to)
39
+ require 'plist'
40
+ require 'yaml'
41
+ yaml = Plist.parse_xml(from).to_yaml
42
+ File.open(to,'w'){|f| f.write(yaml) }
43
+ end
@@ -0,0 +1,527 @@
1
+ ---
2
+ scopeName: source.scss
3
+ name: SCSS
4
+ keyEquivalent: ^~S
5
+ comment: Complete Rewrite of the SCSS Grammar by Mario "Kuroir" Ricalde (http://kuroir.com)
6
+ repository:
7
+ string_single:
8
+ name: string.quoted.single.css
9
+ begin: "'"
10
+ endCaptures:
11
+ "0":
12
+ name: punctuation.definition.string.end.css
13
+ beginCaptures:
14
+ "0":
15
+ name: punctuation.definition.string.begin.css
16
+ end: "'"
17
+ patterns:
18
+ - name: constant.character.escape.css
19
+ match: \\.
20
+ string_double:
21
+ name: string.quoted.double.css
22
+ begin: "\""
23
+ endCaptures:
24
+ "0":
25
+ name: punctuation.definition.string.end.css
26
+ beginCaptures:
27
+ "0":
28
+ name: punctuation.definition.string.begin.css
29
+ end: "\""
30
+ patterns:
31
+ - name: constant.character.escape.css
32
+ match: \\.
33
+ constant_unit:
34
+ name: keyword.other.unit.css
35
+ match: (?<=[\d])(px|pt|cm|mm|in|em|ex|pc|deg)\b|%
36
+ constant_mathematical_symbols:
37
+ name: support.constant.mathematical-symbols.css
38
+ match: (\b(\+|-|\*|/)\b)
39
+ constant_functions:
40
+ begin: ([\w-]{1,})\s*(\()
41
+ endCaptures:
42
+ "1":
43
+ name: punctuation.section.function.css
44
+ beginCaptures:
45
+ "1":
46
+ name: support.function.misc.css
47
+ "2":
48
+ name: punctuation.section.function.css
49
+ end: (\))
50
+ patterns:
51
+ - include: "#parameters"
52
+ comment_line:
53
+ name: comment.line.scss
54
+ comment: Revamped
55
+ begin: (\s{0,})//
56
+ end: $(\s{0,})
57
+ selector_entities:
58
+ name: entity.name.tag.css
59
+ match: \b(a|abbr|address|area|article|aside|audio|b|base|bdo|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|command|datalist|dd|del|details|dfn|div|dl|dt|em|embed|fieldset|figcaption|figure|footer|form|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|keygen|kbd|label|legend|li|link|map|mark|menu|meta|meter|nav|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|rp|rt|ruby|samp|script|section|select|small|source|span|strong|style|sub|summary|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|ul|var|video)\b
60
+ property_values:
61
+ comment: Stuff that should only be available on values.
62
+ patterns:
63
+ - include: "#string_single"
64
+ - include: "#string_double"
65
+ - include: "#constant_functions"
66
+ - include: "#constant_sass_functions"
67
+ - include: "#constant_hex"
68
+ - include: "#constant_rgb"
69
+ - include: "#constant_rgb_percentage"
70
+ - include: "#constant_important"
71
+ - include: "#constant_unit"
72
+ - include: "#constant_property_value"
73
+ - include: "#constant_number"
74
+ - include: "#constant_font"
75
+ - include: "#constant_color"
76
+ - include: "#constant_depracated_color"
77
+ - include: "#constant_mathematical_symbols"
78
+ property_list:
79
+ name: meta.property-list.css
80
+ begin: \{
81
+ captures:
82
+ "0":
83
+ name: punctuation.section.property-list.css
84
+ end: \}
85
+ patterns:
86
+ - include: "#flow_control"
87
+ - include: "#rules"
88
+ selectors:
89
+ comment: Stuff for Selectors.
90
+ patterns:
91
+ - include: "#selector_entities"
92
+ - include: "#selector_class"
93
+ - include: "#selector_id"
94
+ - include: "#selector_pseudo_class"
95
+ - include: "#tag_wildcard"
96
+ - include: "#tag_parent_reference"
97
+ - include: "#selector_pseudo_element"
98
+ - include: "#selector_attribute"
99
+ constant_hex:
100
+ name: constant.other.color.rgb-value.css
101
+ captures:
102
+ "1":
103
+ name: punctuation.definition.constant.css
104
+ match: (#)([0-9a-fA-F]{3}|[0-9a-fA-F]{6})\b
105
+ constant_depracated_color:
106
+ name: invalid.deprecated.color.w3c-non-standard-color-name.css
107
+ comment: "These colours are mostly recognised but will not validate. ref: http://www.w3schools.com/css/css_colornames.asp"
108
+ match: \b(aliceblue|antiquewhite|aquamarine|azure|beige|bisque|blanchedalmond|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|gainsboro|ghostwhite|gold|goldenrod|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|limegreen|linen|magenta|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|oldlace|olivedrab|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|thistle|tomato|turquoise|violet|wheat|whitesmoke|yellowgreen)\b
109
+ variables:
110
+ name: variable.scss
111
+ captures:
112
+ "1":
113
+ name: variable.scss
114
+ match: (\s*)(\$[a-zA-Z0-9_-]+)
115
+ rules:
116
+ patterns:
117
+ - include: "#general"
118
+ - include: "#extend"
119
+ - include: "#include"
120
+ - include: "#selectors"
121
+ - name: meta.property-name.css
122
+ begin: (?<![-a-z])(?=[-a-z])
123
+ end: $|(?![-a-z])
124
+ patterns:
125
+ - include: "#property_names"
126
+ - include: "#include"
127
+ - name: meta.property-value.css
128
+ comment: "Kuroir: fixed nested elements for sass."
129
+ begin: (:)\s{0,}(?!(\s{0,}{))
130
+ endCaptures:
131
+ "1":
132
+ name: punctuation.terminator.rule.css
133
+ beginCaptures:
134
+ "1":
135
+ name: punctuation.separator.key-value.css
136
+ end: \s*(;|(?=\}))
137
+ patterns:
138
+ - include: "#general"
139
+ - include: "#property_values"
140
+ parameters:
141
+ patterns:
142
+ - include: "#variable"
143
+ - include: "#property_values"
144
+ - include: "#comment_line"
145
+ - include: "#comment_block"
146
+ - name: variable.parameter.url.css
147
+ match: "[^'\",) \\t]+"
148
+ - name: punctuation.css
149
+ match: ","
150
+ each:
151
+ name: meta.at-rule.each.scss
152
+ begin: \s{0,}((@)(each)\b)
153
+ captures:
154
+ "1":
155
+ name: keyword.control.each.scss
156
+ "2":
157
+ name: punctuation.definition.keyword.css
158
+ end: (?={)
159
+ patterns:
160
+ - name: keyword.control.operator
161
+ match: \b(in|\,)\b
162
+ - include: "#variable"
163
+ - include: "#property_values"
164
+ - include: $self
165
+ variable_setting:
166
+ name: meta.set.variable
167
+ begin: (\$[\w\-]+)\s{0,}(:)
168
+ captures:
169
+ "1":
170
+ name: variable
171
+ "2":
172
+ name: punctuation
173
+ end: ;
174
+ patterns:
175
+ - include: "#property_values"
176
+ - include: "#variable"
177
+ comment_block:
178
+ name: comment.block.scss
179
+ comment: Revamped Comment block.
180
+ begin: \s{0,}/\*
181
+ captures:
182
+ "0":
183
+ name: punctuation.whitespace.comment.trailing.scss
184
+ end: (\*/)\s{0,}
185
+ selector_pseudo_class:
186
+ name: entity.other.attribute-name.pseudo-class.css
187
+ captures:
188
+ "1":
189
+ name: punctuation.definition.entity.css
190
+ match: (:)\b(link|visited|hover|active|focus|target|lang|disabled|enabled|checked|indeterminate|root|nth-child()|nth-last-child()|nth-of-type()|nth-last-of-type()|first-child|last-child|first-of-type|last-of-type|only-child|only-of-type|empty|not|valid|invalid)\b
191
+ logical_operators:
192
+ name: keyword.control.operator
193
+ match: (\=\=|\!\=|\<\=|\>\=|\<|\>|not|or|and)
194
+ flow_control:
195
+ patterns:
196
+ - include: "#if"
197
+ - include: "#else"
198
+ - include: "#warn"
199
+ - include: "#for"
200
+ - include: "#while"
201
+ - include: "#each"
202
+ - include: "#return"
203
+ else:
204
+ name: meta.at-rule.else.scss
205
+ begin: \s*((@)(else)\b)
206
+ captures:
207
+ "1":
208
+ name: keyword.control.else.scss
209
+ "2":
210
+ name: punctuation.definition.keyword.css
211
+ end: (?={)
212
+ patterns:
213
+ - include: "#logical_operators"
214
+ - include: "#variable"
215
+ - include: "#property_values"
216
+ selector_class:
217
+ name: entity.other.attribute-name.class.css
218
+ captures:
219
+ "1":
220
+ name: punctuation.definition.entity.css
221
+ match: (\.)[a-zA-Z0-9_-]+
222
+ interpolation:
223
+ name: variable.interpolation.scss
224
+ begin: "#\\{"
225
+ end: \}
226
+ patterns:
227
+ - include: "#property_values"
228
+ - include: "#variable"
229
+ include:
230
+ name: meta.at-rule.include.css
231
+ begin: \s*((@)(include)\b)
232
+ captures:
233
+ "1":
234
+ name: keyword.control.at-rule.import.css
235
+ "2":
236
+ name: punctuation.definition.keyword.css
237
+ end: \s*((?=;|\}))
238
+ patterns:
239
+ - include: "#functions"
240
+ constant_property_value:
241
+ name: support.constant.property-value.css
242
+ match: \b(absolute|all-scroll|always|armenian|auto|baseline|below|bidi-override|block|bold|bolder|both|bottom|break-all|break-word|capitalize|center|char|circle|cjk-ideographic|col-resize|collapse|crosshair|dashed|decimal-leading-zero|decimal|default|disabled|disc|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ellipsis|fixed|georgian|groove|hand|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|inactive|inherit|inline-block|inline|inset|inside|inter-ideograph|inter-word|italic|justify|katakana-iroha|katakana|keep-all|left|lighter|line-edge|line-through|line|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|outset|outside|overline|pointer|progress|relative|repeat-x|repeat-y|repeat|right|ridge|row-resize|rtl|s-resize|scroll|se-resize|separate|small-caps|solid|square|static|strict|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|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|zero|true|false)\b
243
+ selector_id:
244
+ name: entity.other.attribute-name.id.css
245
+ captures:
246
+ "1":
247
+ name: punctuationctuation.definition.entity.css
248
+ match: (#)[a-zA-Z][a-zA-Z0-9_-]*
249
+ import:
250
+ name: meta.at-rule.import.css
251
+ begin: \s*((@)(import)\b)
252
+ captures:
253
+ "1":
254
+ name: keyword.control.at-rule.import.css
255
+ "2":
256
+ name: punctuation.definition.keyword.css
257
+ end: \s*((?=;|\}))
258
+ patterns:
259
+ - include: "#variable"
260
+ - include: "#string_single"
261
+ - include: "#string_double"
262
+ - include: "#functions"
263
+ if:
264
+ name: meta.at-rule.if.scss
265
+ begin: \s{0,}((@)(if)\b)
266
+ captures:
267
+ "1":
268
+ name: keyword.control.if.scss
269
+ "2":
270
+ name: punctuation.definition.keyword.css
271
+ end: (?={)
272
+ patterns:
273
+ - include: "#logical_operators"
274
+ - include: "#variable"
275
+ - include: "#property_values"
276
+ functions:
277
+ patterns:
278
+ - begin: ([\w-]{1,})(\()\s*
279
+ endCaptures:
280
+ "1":
281
+ name: punctuation.section.function.css
282
+ beginCaptures:
283
+ "1":
284
+ name: support.function.misc.css
285
+ "2":
286
+ name: punctuation.section.function.css
287
+ end: (\))
288
+ patterns:
289
+ - include: "#parameters"
290
+ - name: support.function.misc.css
291
+ match: ([\w-]{1,})
292
+ constant_sass_functions:
293
+ begin: (headings|stylesheet-url|rgba?|hsla?|ie-hex-str|red|green|blue|alpha|opacity|hue|saturation|lightness|prefixed|prefix|-moz|-svg|-css2|-pie|-webkit|-ms|-o|font-(?:files|url)|grid-image|image-(?:width|height|url|color)|sprites?|sprite-(?:map|map-name|file|url|position)|inline-(?:font-files|image)|opposite-position|grad-point|grad-end-position|color-stops|color-stops-in-percentages|grad-color-stops|(?:radial|linear)-(?:gradient|svg-gradient)|opacify|fade-?in|transparentize|fade-?out|lighten|darken|saturate|desaturate|grayscale|adjust-(?:hue|lightness|saturation|color)|scale-(?:lightness|saturation|color)|change-color|spin|complement|invert|mix|-compass-(?:list|space-list|slice|nth|list-size)|blank|compact|nth|first-value-of|join|length|append|nest|append-selector|headers|enumerate|range|percentage|unitless|unit|if|type-of|comparable|elements-of-type|quote|unquote|escape|e|sin|cos|tan|abs|round|ceil|floor|pi)\s*(\()
294
+ endCaptures:
295
+ "1":
296
+ name: punctuation.section.function.css
297
+ beginCaptures:
298
+ "1":
299
+ name: support.function.misc.css
300
+ "2":
301
+ name: punctuation.section.function.css
302
+ end: (\))
303
+ patterns:
304
+ - include: "#parameters"
305
+ while:
306
+ name: meta.at-rule.while.scss
307
+ begin: \s{0,}((@)(while)\b)
308
+ captures:
309
+ "1":
310
+ name: keyword.control.while.scss
311
+ "2":
312
+ name: punctuation.definition.keyword.css
313
+ end: (?={)
314
+ patterns:
315
+ - include: "#logical_operators"
316
+ - include: "#variable"
317
+ - include: "#property_values"
318
+ - include: $self
319
+ selector_attribute:
320
+ name: meta.attribute-selector.css
321
+ captures:
322
+ "6":
323
+ name: punctuation.definition.string.begin.css
324
+ "7":
325
+ name: punctuation.definition.string.end.css
326
+ "1":
327
+ name: punctuation.definition.entity.css
328
+ "2":
329
+ name: entity.other.attribute-name.attribute.css
330
+ "3":
331
+ name: punctuation.separator.operator.css
332
+ "4":
333
+ name: string.unquoted.attribute-value.css
334
+ "5":
335
+ name: string.quoted.double.attribute-value.css
336
+ match: (?i)(\[)\s*(-?[_a-z\\[[:^ascii:]]][_a-z0-9\-\\[[:^ascii:]]]*)(?:\s*([~|^$*]?=)\s*(?:(-?[_a-z\\[[:^ascii:]]][_a-z0-9\-\\[[:^ascii:]]]*)|((?>(['"])(?:[^\\]|\\.)*?(\6)))))?\s*(\])
337
+ property_names:
338
+ patterns:
339
+ - include: "#property_name"
340
+ - include: "#property_name_error"
341
+ extend:
342
+ name: meta.at-rule.import.css
343
+ begin: \s*((@)(extend)\b)
344
+ captures:
345
+ "1":
346
+ name: keyword.control.at-rule.import.css
347
+ "2":
348
+ name: punctuation.definition.keyword.css
349
+ end: \s*((?=;))
350
+ patterns:
351
+ - include: "#variable"
352
+ - include: "#selectors"
353
+ constant_number:
354
+ name: constant.numeric.css
355
+ match: "[+-]?\\s*([0-9]+(\\.[0-9]+)?|\\.[0-9]+)"
356
+ constant_color:
357
+ name: support.constant.color.w3c-standard-color-name.css
358
+ comment: http://www.w3.org/TR/CSS21/syndata.html#value-def-color
359
+ match: \b(aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)\b
360
+ tag_wildcard:
361
+ name: entity.name.tag.wildcard.css
362
+ match: \*
363
+ tag_parent_reference:
364
+ name: entity.name.tag.reference.css
365
+ match: \&
366
+ selector_pseudo_element:
367
+ name: entity.other.attribute-name.pseudo-element.css
368
+ captures:
369
+ "1":
370
+ name: punctuation.definition.entity.css
371
+ match: (:+)\b(after|before|first-letter|first-line|selection)\b
372
+ return:
373
+ name: meta.at-rule.return.scss
374
+ begin: \s*((@)(return)\b)
375
+ captures:
376
+ "1":
377
+ name: keyword.control.return.scss
378
+ "2":
379
+ name: punctuation.definition.keyword.css
380
+ end: \s*((?=;))
381
+ patterns:
382
+ - include: "#variable"
383
+ - include: "#property_values"
384
+ for:
385
+ name: meta.at-rule.for.scss
386
+ begin: \s{0,}((@)(for)\b)
387
+ captures:
388
+ "1":
389
+ name: keyword.control.for.scss
390
+ "2":
391
+ name: punctuation.definition.keyword.css
392
+ end: (?={)
393
+ patterns:
394
+ - name: keyword.control.operator
395
+ match: (\=\=|\!\=|\<\=|\>\=|\<|\>|from|through)
396
+ - include: "#variable"
397
+ - include: "#property_values"
398
+ - include: $self
399
+ constant_rgb_percentage:
400
+ name: constant.other.color.rgb-percentage.css
401
+ match: \b([0-9]{1,2}|100)\s*%,\s*([0-9]{1,2}|100)\s*%,\s*([0-9]{1,2}|100)\s*%
402
+ constant_rgb:
403
+ name: constant.other.color.rgb-value.css
404
+ match: (\b0*((1?[0-9]{1,2})|(2([0-4][0-9]|5[0-5])))\s*,\s*)(0*((1?[0-9]{1,2})|(2([0-4][0-9]|5[0-5])))\s*,\s*)(0*((1?[0-9]{1,2})|(2([0-4][0-9]|5[0-5])))\b)
405
+ constant_important:
406
+ name: keyword.other.important.css
407
+ match: \!\s*important
408
+ warn:
409
+ name: meta.at-rule.warn.scss
410
+ begin: \s*((@)(warn|debug)\b)
411
+ captures:
412
+ "1":
413
+ name: keyword.control.warn.scss
414
+ "2":
415
+ name: punctuation.definition.keyword.css
416
+ end: (?=\;)
417
+ patterns:
418
+ - include: "#variable"
419
+ - include: "#string_double"
420
+ - include: "#string_single"
421
+ variable:
422
+ patterns:
423
+ - include: "#variables"
424
+ - include: "#interpolation"
425
+ property_name_error:
426
+ name: invalid.illegal
427
+ match: (?<![a-z-])(?!z-index\b|y\b|x\b|wrap\b|word-wrap\b|word-spacing\b|word-break\b|word\b|width\b|widows\b|white-space-collapse\b|white-space\b|white\b|weight\b|volume\b|voice-volume\b|voice-stress\b|voice-rate\b|voice-pitch-range\b|voice-pitch\b|voice-family\b|voice-duration\b|voice-balance\b|voice\b|visibility\b|vertical-align\b|variant\b|user-select\b|up\b|unicode-bidi\b|unicode\b|trim\b|transition-timing-function\b|transition-property\b|transition-duration\b|transition-delay\b|transition\b|transform\b|top-width\b|top-style\b|top-right-radius\b|top-left-radius\b|top-color\b|top\b|timing-function\b|text-wrap\b|text-transform\b|text-shadow\b|text-replace\b|text-outline\b|text-justify\b|text-indent\b|text-height\b|text-emphasis\b|text-decoration\b|text-align-last\b|text-align\b|text\b|target-position\b|target-new\b|target-name\b|target\b|table-layout\b|tab-side\b|style-type\b|style-position\b|style-image\b|style\b|string-set\b|stretch\b|stress\b|stacking-strategy\b|stacking-shift\b|stacking-ruby\b|stacking\b|speed\b|speech-rate\b|speech\b|speak-punctuation\b|speak-numeral\b|speak-header\b|speak\b|span\b|spacing\b|space-collapse\b|space\b|sizing\b|size-adjust\b|size\b|shadow\b|rule-width\b|rule-style\b|rule-color\b|rule\b|ruby-span\b|ruby-position\b|ruby-overhang\b|ruby-align\b|ruby\b|rows\b|rotation-point\b|rotation\b|role\b|right-width\b|right-style\b|right-color\b|right\b|richness\b|rest-before\b|rest-after\b|rest\b|resource\b|resolution\b|resize\b|reset\b|replace\b|repeat\b|rendering-intent\b|rate\b|radius\b|quotes\b|punctuation-trim\b|punctuation\b|property\b|profile\b|presentation-level\b|presentation\b|position\b|point\b|play-state\b|play-during\b|play-count\b|pitch-range\b|pitch\b|phonemes\b|pause-before\b|pause-after\b|pause\b|page-policy\b|page-break-inside\b|page-break-before\b|page-break-after\b|page\b|padding-top\b|padding-right\b|padding-left\b|padding-bottom\b|padding\b|pack\b|overhang\b|overflow-y\b|overflow-x\b|overflow-style\b|overflow\b|outline-width\b|outline-style\b|outline-offset\b|outline-color\b|outline\b|orphans\b|origin\b|orientation\b|orient\b|ordinal-group\b|opacity\b|offset\b|numeral\b|new\b|nav-up\b|nav-right\b|nav-left\b|nav-index\b|nav-down\b|nav\b|name\b|move-to\b|model\b|min-width\b|min-height\b|min\b|max-width\b|max-height\b|max\b|marquee-style\b|marquee-speed\b|marquee-play-count\b|marquee-direction\b|marquee\b|marks\b|mark-before\b|mark-after\b|mark\b|margin-top\b|margin-right\b|margin-left\b|margin-bottom\b|margin\b|list-style-type\b|list-style-position\b|list-style-image\b|list-style\b|list\b|lines\b|line-stacking-strategy\b|line-stacking-shift\b|line-stacking-ruby\b|line-stacking\b|line-height\b|line\b|level\b|letter-spacing\b|length\b|left-width\b|left-style\b|left-color\b|left\b|label\b|justify\b|iteration-count\b|inline-box-align\b|initial-value\b|initial-size\b|initial-before-align\b|initial-before-adjust\b|initial-after-align\b|initial-after-adjust\b|index\b|indent\b|increment\b|image-resolution\b|image-orientation\b|image\b|icon\b|hyphens\b|hyphenate-resource\b|hyphenate-lines\b|hyphenate-character\b|hyphenate-before\b|hyphenate-after\b|hyphenate\b|height\b|header\b|hanging-punctuation\b|grid-rows\b|grid-columns\b|grid\b|gap\b|font-weight\b|font-variant\b|font-style\b|font-stretch\b|font-size-adjust\b|font-size\b|font-family\b|font\b|float-offset\b|float\b|flex-group\b|flex\b|fit-position\b|fit\b|fill\b|family\b|empty-cells\b|emphasis\b|elevation\b|duration\b|drop-initial-value\b|drop-initial-size\b|drop-initial-before-align\b|drop-initial-before-adjust\b|drop-initial-after-align\b|drop-initial-after-adjust\b|drop\b|down\b|dominant-baseline\b|display-role\b|display-model\b|display\b|direction\b|delay\b|decoration-break\b|decoration\b|cursor\b|cue-before\b|cue-after\b|cue\b|crop\b|counter-reset\b|counter-increment\b|counter\b|count\b|content\b|columns\b|column-width\b|column-span\b|column-rule-width\b|column-rule-style\b|column-rule-color\b|column-rule\b|column-gap\b|column-fill\b|column-count\b|column-break-before\b|column-break-after\b|column\b|color-profile\b|color\b|collapse\b|clip\b|clear\b|character\b|caption-side\b|break-inside\b|break-before\b|break-after\b|break\b|box-sizing\b|box-shadow\b|box-pack\b|box-orient\b|box-ordinal-group\b|box-lines\b|box-flex-group\b|box-flex\b|box-direction\b|box-decoration-break\b|box-align\b|box\b|bottom-width\b|bottom-style\b|bottom-right-radius\b|bottom-left-radius\b|bottom-color\b|bottom\b|border-width\b|border-top-width\b|border-top-style\b|border-top-right-radius\b|border-top-left-radius\b|border-top-color\b|border-top\b|border-style\b|border-spacing\b|border-right-width\b|border-right-style\b|border-right-color\b|border-right\b|border-radius\b|border-length\b|border-left-width\b|border-left-style\b|border-left-color\b|border-left\b|border-image\b|border-color\b|border-collapse\b|border-bottom-width\b|border-bottom-style\b|border-bottom-right-radius\b|border-bottom-left-radius\b|border-bottom-color\b|border-bottom\b|border\b|bookmark-target\b|bookmark-level\b|bookmark-label\b|bookmark\b|binding\b|bidi\b|before\b|baseline-shift\b|baseline\b|balance\b|background-size\b|background-repeat\b|background-position\b|background-origin\b|background-image\b|background-color\b|background-clip\b|background-break\b|background-attachment\b|background\b|azimuth\b|attachment\b|appearance\b|animation-timing-function\b|animation-play-state\b|animation-name\b|animation-iteration-count\b|animation-duration\b|animation-direction\b|animation-delay\b|animation\b|alignment-baseline\b|alignment-adjust\b|alignment\b|align-last\b|align\b|after\b|adjust\b)[a-z\-\_]+
428
+ property_name:
429
+ name: support.type.property-name.css
430
+ comment: Reversal order is important; KEEP IT. Also when adding new properties add them to the error checker below!
431
+ match: \b(z-index|y|x|wrap|word-wrap|word-spacing|word-break|word|width|widows|white-space-collapse|white-space|white|weight|volume|voice-volume|voice-stress|voice-rate|voice-pitch-range|voice-pitch|voice-family|voice-duration|voice-balance|voice|visibility|vertical-align|variant|user-select|up|unicode-bidi|unicode|trim|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform|top-width|top-style|top-right-radius|top-left-radius|top-color|top|timing-function|text-wrap|text-transform|text-shadow|text-replace|text-outline|text-justify|text-indent|text-height|text-emphasis|text-decoration|text-align-last|text-align|text|target-position|target-new|target-name|target|table-layout|tab-side|style-type|style-position|style-image|style|string-set|stretch|stress|stacking-strategy|stacking-shift|stacking-ruby|stacking|speed|speech-rate|speech|speak-punctuation|speak-numeral|speak-header|speak|span|spacing|space-collapse|space|sizing|size-adjust|size|shadow|rule-width|rule-style|rule-color|rule|ruby-span|ruby-position|ruby-overhang|ruby-align|ruby|rows|rotation-point|rotation|role|right-width|right-style|right-color|right|richness|rest-before|rest-after|rest|resource|resolution|resize|reset|replace|repeat|rendering-intent|rate|radius|quotes|punctuation-trim|punctuation|property|profile|presentation-level|presentation|position|point|play-state|play-during|play-count|pitch-range|pitch|phonemes|pause-before|pause-after|pause|page-policy|page-break-inside|page-break-before|page-break-after|page|padding-top|padding-right|padding-left|padding-bottom|padding|pack|overhang|overflow-y|overflow-x|overflow-style|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|origin|orientation|orient|ordinal-group|opacity|offset|numeral|new|nav-up|nav-right|nav-left|nav-index|nav-down|nav|name|move-to|model|min-width|min-height|min|max-width|max-height|max|marquee-style|marquee-speed|marquee-play-count|marquee-direction|marquee|marks|mark-before|mark-after|mark|margin-top|margin-right|margin-left|margin-bottom|margin|list-style-type|list-style-position|list-style-image|list-style|list|lines|line-stacking-strategy|line-stacking-shift|line-stacking-ruby|line-stacking|line-height|line|level|letter-spacing|length|left-width|left-style|left-color|left|label|justify|iteration-count|inline-box-align|initial-value|initial-size|initial-before-align|initial-before-adjust|initial-after-align|initial-after-adjust|index|indent|increment|image-resolution|image-orientation|image|icon|hyphens|hyphenate-resource|hyphenate-lines|hyphenate-character|hyphenate-before|hyphenate-after|hyphenate|height|header|hanging-punctuation|grid-rows|grid-columns|grid|gap|font-weight|font-variant|font-style|font-stretch|font-size-adjust|font-size|font-family|font|float-offset|float|flex-group|flex|fit-position|fit|fill|family|empty-cells|emphasis|elevation|duration|drop-initial-value|drop-initial-size|drop-initial-before-align|drop-initial-before-adjust|drop-initial-after-align|drop-initial-after-adjust|drop|down|dominant-baseline|display-role|display-model|display|direction|delay|decoration-break|decoration|cursor|cue-before|cue-after|cue|crop|counter-reset|counter-increment|counter|count|content|columns|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|column-break-before|column-break-after|column|color-profile|color|collapse|clip|clear|character|caption-side|break-inside|break-before|break-after|break|box-sizing|box-shadow|box-pack|box-orient|box-ordinal-group|box-lines|box-flex-group|box-flex|box-direction|box-decoration-break|box-align|box|bottom-width|bottom-style|bottom-right-radius|bottom-left-radius|bottom-color|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-length|border-left-width|border-left-style|border-left-color|border-left|border-image|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border|bookmark-target|bookmark-level|bookmark-label|bookmark|binding|bidi|before|baseline-shift|baseline|balance|background-size|background-repeat|background-position|background-origin|background-image|background-color|background-clip|background-break|background-attachment|background|azimuth|attachment|appearance|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-duration|animation-direction|animation-delay|animation|alignment-baseline|alignment-adjust|alignment|align-last|align|after|adjust)\b
432
+ general:
433
+ comment: Stuff that should be everywhere
434
+ patterns:
435
+ - include: "#variable"
436
+ - include: "#comment_block"
437
+ - include: "#comment_line"
438
+ function_attributes:
439
+ patterns:
440
+ - name: punctuation.definition
441
+ match: ":"
442
+ - include: "#general"
443
+ - include: "#property_values"
444
+ - name: invalid.illegal
445
+ comment: We even have error highlighting <3
446
+ match: "[=\\{\\}\\?\\;\\@]"
447
+ constant_font:
448
+ name: support.constant.font-name.css
449
+ match: (\b(?i:arial|century|comic|courier|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace)\b)
450
+ uuid: 3D9ADE5E-ADC5-460F-97B3-B61EF5A18273
451
+ patterns:
452
+ - comment: Variable setting
453
+ include: "#variable_setting"
454
+ - include: "#include"
455
+ - include: "#import"
456
+ - include: "#general"
457
+ - include: "#flow_control"
458
+ - comment: Yes, we need the rules at root level available for nesting.
459
+ include: "#rules"
460
+ - comment: Properties
461
+ include: "#property_list"
462
+ - name: meta.at-rule.mixin.scss
463
+ comment: Mixin with Attributes
464
+ begin: ^\s*((@)mixin) ([\w-]{1,})\s{0,2}\(
465
+ captures:
466
+ "1":
467
+ name: keyword.control.at-rule.mixin.scss
468
+ "2":
469
+ name: punctuation.definition.keyword.scss
470
+ "3":
471
+ name: entity.name.function.scss
472
+ end: \)
473
+ patterns:
474
+ - include: "#function_attributes"
475
+ - name: meta.at-rule.mixin.scss
476
+ comment: Simple Mixin
477
+ captures:
478
+ "1":
479
+ name: keyword.control.at-rule.mixin.scss
480
+ "2":
481
+ name: punctuation.definition.keyword.css
482
+ "3":
483
+ name: entity.name.function.scss
484
+ match: ^\s*((@)mixin) ([\w-]{1,})
485
+ - name: meta.at-rule.function.scss
486
+ comment: Function with Attributes
487
+ begin: ^\s*((@)function) ([\w-]{1,})\s{0,2}\(
488
+ captures:
489
+ "1":
490
+ name: keyword.control.at-rule.function.scss
491
+ "2":
492
+ name: punctuation.definition.keyword.css
493
+ "3":
494
+ name: entity.name.function.scss
495
+ end: \)
496
+ patterns:
497
+ - include: "#function_attributes"
498
+ - name: meta.at-rule.function.scss
499
+ comment: Simple Function
500
+ captures:
501
+ "1":
502
+ name: keyword.control.at-rule.function.scss
503
+ "2":
504
+ name: punctuation.definition.keyword.css
505
+ "3":
506
+ name: entity.name.function.scss
507
+ match: ^\s*((@)function) ([\w-]{1,})
508
+ - name: meta.at-rule.charset.scss
509
+ comment: Charset
510
+ captures:
511
+ "1":
512
+ name: keyword.control.at-rule.charset.scss
513
+ "2":
514
+ name: punctuation.definition.keyword.css
515
+ match: ^\s*((@)charset\b)\s*
516
+ - name: meta.at-rule.option.scss
517
+ comment: Option
518
+ captures:
519
+ "1":
520
+ name: keyword.control.at-rule.charset.scss
521
+ "2":
522
+ name: punctuation.definition.keyword.css
523
+ match: ^\s*((@)option\b)\s*
524
+ foldingStartMarker: /\*\*(?!\*)|\{\s*($|/\*(?!.*?\*/.*\S))
525
+ foldingStopMarker: (?<!\*)\*\*/|^\s*\}
526
+ fileTypes:
527
+ - scss
@@ -1,3 +1,3 @@
1
1
  module Textpow
2
- VERSION = Version = "1.2.0"
2
+ VERSION = Version = "1.2.1"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: textpow1x
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 0
10
- version: 1.2.0
9
+ - 1
10
+ version: 1.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dizan Vasquez
@@ -18,7 +18,7 @@ autorequire:
18
18
  bindir: bin
19
19
  cert_chain: []
20
20
 
21
- date: 2011-10-07 00:00:00 +02:00
21
+ date: 2011-10-08 00:00:00 +02:00
22
22
  default_executable:
23
23
  dependencies:
24
24
  - !ruby/object:Gem::Dependency
@@ -163,6 +163,7 @@ files:
163
163
  - lib/textpow/syntax/source.sass.syntax
164
164
  - lib/textpow/syntax/source.scheme.syntax
165
165
  - lib/textpow/syntax/source.scilab.syntax
166
+ - lib/textpow/syntax/source.scss.syntax
166
167
  - lib/textpow/syntax/source.shell.syntax
167
168
  - lib/textpow/syntax/source.slate.syntax
168
169
  - lib/textpow/syntax/source.smarty.syntax