stylus-source 0.22.4 → 0.22.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.22.4
1
+ 0.22.5
data/vendor/History.md CHANGED
@@ -1,4 +1,9 @@
1
1
 
2
+ 0.22.5 / 2012-01-16
3
+ ==================
4
+
5
+ * Fixed underscore in function identifier. Closes #524
6
+
2
7
  0.22.4 / 2012-01-11
3
8
  ==================
4
9
 
data/vendor/Readme.md CHANGED
@@ -104,6 +104,7 @@ form input {
104
104
  - gedit [language-spec](/LearnBoost/stylus/blob/master/docs/gedit.md)
105
105
  - VIM [Syntax](https://github.com/wavded/vim-stylus)
106
106
  - [Firebug extension](/LearnBoost/stylus/blob/master/docs/firebug.md)
107
+ - heroku [web service](http://styl.heroku.com) for compiling stylus
107
108
  - transparent vendor-specific function expansion
108
109
 
109
110
  ### Framework Support
@@ -208,12 +208,12 @@
208
208
  <string>constant.numeric.stylus</string>
209
209
  </dict>
210
210
  <dict>
211
- <key>match</key> <string>\b(azimuth|background-attachment|background-color|background-image|background-position|background-repeat|background|box-shadow|border-radius|border-bottom-color|border-bottom-style|border-bottom-width|border-bottom|border-collapse|border-color|border-left-color|border-left-style|border-left-width|border-left|border-right-color|border-right-style|border-right-width|border-right|border-spacing|border-style|border-top-color|border-top-style|border-top-width|border-top|border-width|border|bottom|caption-side|clear|clip|color|content|counter-increment|counter-reset|cue-after|cue-before|cue|cursor|direction|display|elevation|empty-cells|float|font-family|font-size-adjust|font-size|font-stretch|font-style|font-variant|font-weight|font|height|image-rendering|left|letter-spacing|line-height|list-style-image|list-style-position|list-style-type|list-style|margin-bottom|margin-left|margin-right|margin-top|marker-offset|margin|marks|max-height|max-width|min-height|min-width|-moz-border-radius|opacity|orphans|outline-color|outline-style|outline-width|outline|overflow(-[xy])?|padding-bottom|padding-left|padding-right|padding-top|padding|page-break-after|page-break-before|page-break-inside|page|pause-after|pause-before|pause|pitch-range|pitch|play-during|pointer-events|position|quotes|resize|richness|right|size|speak-header|speak-numeral|speak-punctuation|speech-rate|speak|src|stress|table-layout|text-(align|decoration|indent|rendering|shadow|transform)|top|transition|transform|unicode-bidi|vertical-align|visibility|voice-family|volume|white-space|widows|width|word-(spacing|wrap)|zoom|z-index)\b</string>
211
+ <key>match</key> <string>(?&lt;=^|\{|;)\s*(azimuth|background-attachment|background-clip|background-color|background-image|background-position|background-repeat|background|box-shadow|box-sizing|border(-collapse|-color|-width|((-bottom|-top)(-left|-right))?-radius|-spacing|-style|-image(-outset|-repeat|-slice|-source|-width)?|(-bottom|-left|-right|-top)(-color|-style|-width)?)?|bottom|caption-side|clear|clip|color|content|counter-increment|counter-reset|cue-after|cue-before|cue|cursor|direction|display|elevation|empty-cells|float|font-family|font-size-adjust|font-size|font-stretch|font-style|font-variant|font-weight|font|height|image-rendering|left|letter-spacing|line-height|list-style-image|list-style-position|list-style-type|list-style|margin-bottom|margin-left|margin-right|margin-top|marker-offset|margin|marks|max-height|max-width|min-height|min-width|opacity|orphans|outline-color|outline-style|outline-width|outline|(text-)?overflow(-[xy])?|padding-bottom|padding-left|padding-right|padding-top|padding|page-break-after|page-break-before|page-break-inside|page|pause-after|pause-before|pause|pitch-range|pitch|play-during|pointer-events|position|quotes|resize|richness|right|size|speak-header|speak-numeral|speak-punctuation|speech-rate|speak|src|stress|table-layout|text-(align|decoration|indent|rendering|shadow|transform)|top|transition|transform|unicode-bidi|vertical-align|visibility|voice-family|volume|white-space|widows|width|word-(spacing|wrap)|zoom|z-index)</string>
212
212
  <key>name</key>
213
213
  <string>support.type.property-name.stylus</string>
214
214
  </dict>
215
215
  <dict>
216
- <key>match</key> <string>\b(absolute|all(-scroll)?|always|armenian|auto|avoid|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|geometricPrecision|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|optimize(Legibility|Quality|Speed)|outset|outside|overline|pointer|pre(-(wrap|line))?|progress|relative|repeat-x|repeat-y|repeat|right|ridge|row-resize|rtl|s-resize|scroll|se-resize|separate|small-caps|solid|square|static|strict|sub|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|text))?|visible(Painted|Fill|Stroke)?|w-resize|wait|whitespace|zero|smaller|larger|((xx?-)?(small|large))|painted|fill|stroke)\b</string>
216
+ <key>match</key> <string>\b(absolute|all(-scroll)?|always|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|ellipsis|fixed|geometricPrecision|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|optimize(Legibility|Quality|Speed)|outset|outside|overline|padding-box|pointer|pre(-(wrap|line))?|progress|relative|repeat-x|repeat-y|repeat|right|ridge|row-resize|rtl|s-resize|scroll|se-resize|separate|small-caps|solid|square|static|strict|sub|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|text))?|visible(Painted|Fill|Stroke)?|w-resize|wait|whitespace|zero|smaller|larger|((xx?-)?(small|large))|painted|fill|stroke)\b</string>
217
217
  <key>name</key>
218
218
  <string>support.constant.property-value.stylus</string>
219
219
  </dict>
data/vendor/lib/lexer.js CHANGED
@@ -523,12 +523,12 @@ Lexer.prototype = {
523
523
  },
524
524
 
525
525
  /**
526
- * -?[a-zA-Z$] [-\w\d$]* '('
526
+ * -?[_a-zA-Z$] [-\w\d$]* '('
527
527
  */
528
528
 
529
529
  function: function() {
530
530
  var captures;
531
- if (captures = /^(-?[a-zA-Z$][-\w\d$]*)\(([ \t]*)/.exec(this.str)) {
531
+ if (captures = /^(-?[_a-zA-Z$][-\w\d$]*)\(([ \t]*)/.exec(this.str)) {
532
532
  var name = captures[1];
533
533
  this.skip(captures);
534
534
  this.isURL = 'url' == name;
data/vendor/lib/stylus.js CHANGED
@@ -24,7 +24,7 @@ exports = module.exports = render;
24
24
  * Library version.
25
25
  */
26
26
 
27
- exports.version = '0.22.4';
27
+ exports.version = '0.22.5';
28
28
 
29
29
  /**
30
30
  * Expose nodes.
data/vendor/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  { "name": "stylus"
2
2
  , "description": "Robust, expressive, and feature-rich CSS superset"
3
- , "version": "0.22.4"
3
+ , "version": "0.22.5"
4
4
  , "author": "TJ Holowaychuk <tj@vision-media.ca>"
5
5
  , "keywords": ["css", "parser", "style", "stylesheets", "jade", "language"]
6
6
  , "repository": "git://github.com/learnboost/stylus"
@@ -0,0 +1,4 @@
1
+ body {
2
+ foo: 'bar';
3
+ bar: 'baz';
4
+ }
@@ -0,0 +1,7 @@
1
+
2
+ _button()
3
+ foo: 'bar'
4
+ bar: 'baz'
5
+
6
+ body
7
+ _button()
@@ -8,9 +8,12 @@ var stylus = require('../')
8
8
  , path = 'testing/test.styl'
9
9
  , str = fs.readFileSync(path, 'utf8');
10
10
 
11
+ var start = new Date;
12
+
11
13
  stylus(str)
12
14
  .set('filename', path)
13
15
  .render(function(err, css){
14
16
  if (err) throw err;
15
17
  console.log(css);
18
+ // console.log('%dms', new Date - start);
16
19
  });
@@ -1 +1,7 @@
1
1
 
2
+ _button()
3
+ foo: 'bar'
4
+ bar: 'baz'
5
+
6
+ body
7
+ _button()
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stylus-source
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.4
4
+ version: 0.22.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-15 00:00:00.000000000 Z
12
+ date: 2012-01-17 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Robust, expressive, and feature-rich CSS superset. This gem packages
15
15
  up stylus for use with the stylus gem.
@@ -606,6 +606,8 @@ files:
606
606
  - vendor/test/cases/regression.503.styl
607
607
  - vendor/test/cases/regression.504.css
608
608
  - vendor/test/cases/regression.504.styl
609
+ - vendor/test/cases/regression.524.css
610
+ - vendor/test/cases/regression.524.styl
609
611
  - vendor/test/cases/reset.css
610
612
  - vendor/test/cases/reset.styl
611
613
  - vendor/test/cases/rule.charset.css