barber-emblem 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module Barber
2
2
  module Emblem
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
@@ -332,7 +332,7 @@ Emblem.Parser = (function() {
332
332
 
333
333
  // Make sure a suffix modifier hasn't already been applied.
334
334
  var ch = ret.mustache.id.string.charAt(0);
335
- if(!ch.match(/[A-Z]/)) return ret;
335
+ if(!IS_EMBER || !ch.match(/[A-Z]/)) return ret;
336
336
 
337
337
  ret.mustache = unshiftParam(ret.mustache, defaultCapitalizedHelper);
338
338
  return ret;
@@ -629,71 +629,78 @@ Emblem.Parser = (function() {
629
629
  }
630
630
  },
631
631
  peg$c125 = function(a) {
632
- return [new AST.ContentNode(' '), a];
632
+ return [new AST.ContentNode(' ')].concat(a);
633
633
  },
634
634
  peg$c126 = /^[A-Za-z.:0-9_]/,
635
635
  peg$c127 = "[A-Za-z.:0-9_]",
636
636
  peg$c128 = function(id) { return new AST.MustacheNode([id]); },
637
637
  peg$c129 = function(event, mustacheNode) {
638
638
  // Unshift the action helper and augment the hash
639
- return unshiftParam(mustacheNode, 'action', [['on', new AST.StringNode(event)]]);
639
+ return [unshiftParam(mustacheNode, 'action', [['on', new AST.StringNode(event)]])];
640
640
  },
641
641
  peg$c130 = function(value) { return value.replace(/ *$/, ''); },
642
- peg$c131 = function(key, value) {
642
+ peg$c131 = function(key, value) { return IS_EMBER; },
643
+ peg$c132 = function(key, value) {
643
644
  var hashNode = new AST.HashNode([[key, new AST.StringNode(value)]]);
644
645
  var params = [new AST.IdNode(['bindAttr'])];
645
-
646
- return new AST.MustacheNode(params, hashNode);
646
+ return [new AST.MustacheNode(params, hashNode)];
647
647
  },
648
- peg$c132 = function(key, value) {
648
+ peg$c133 = function(key, id) {
649
+ return [
650
+ new AST.ContentNode(key + '=' + '"'),
651
+ new AST.MustacheNode([id]),
652
+ new AST.ContentNode('"'),
653
+ ];
654
+ },
655
+ peg$c134 = function(key, value) {
649
656
  var s = key + '=' + '"' + value + '"';
650
- return new AST.ContentNode(s);
657
+ return [new AST.ContentNode(s)];
651
658
  },
652
- peg$c133 = "_",
653
- peg$c134 = "\"_\"",
654
- peg$c135 = "-",
655
- peg$c136 = "\"-\"",
656
- peg$c137 = "%",
657
- peg$c138 = "\"%\"",
658
- peg$c139 = "#",
659
- peg$c140 = "\"#\"",
660
- peg$c141 = function(c) { return c;},
661
- peg$c142 = "CSSIdentifier",
662
- peg$c143 = function(nmstart, nmchars) { return nmstart + nmchars; },
663
- peg$c144 = /^[_a-zA-Z0-9\-]/,
664
- peg$c145 = "[_a-zA-Z0-9\\-]",
665
- peg$c146 = /^[_a-zA-Z]/,
666
- peg$c147 = "[_a-zA-Z]",
667
- peg$c148 = /^[\x80-\xFF]/,
668
- peg$c149 = "[\\x80-\\xFF]",
669
- peg$c150 = "KnownHTMLTagName",
670
- peg$c151 = function(t) { return !!KNOWN_TAGS[t]; },
671
- peg$c152 = function(t) { return t; },
672
- peg$c153 = /^[:_a-zA-Z0-9\-]/,
673
- peg$c154 = "[:_a-zA-Z0-9\\-]",
674
- peg$c155 = "a JS event",
675
- peg$c156 = function(t) { return !!KNOWN_EVENTS[t]; },
676
- peg$c157 = "INDENT",
677
- peg$c158 = "\uEFEF",
678
- peg$c159 = "\"\\uEFEF\"",
679
- peg$c160 = function() { return ''; },
680
- peg$c161 = "DEDENT",
681
- peg$c162 = "\uEFFE",
682
- peg$c163 = "\"\\uEFFE\"",
683
- peg$c164 = "Unmatched DEDENT",
684
- peg$c165 = "\uEFEE",
685
- peg$c166 = "\"\\uEFEE\"",
686
- peg$c167 = "LineEnd",
687
- peg$c168 = "\uEFFF",
688
- peg$c169 = "\"\\uEFFF\"",
689
- peg$c170 = "\n",
690
- peg$c171 = "\"\\n\"",
691
- peg$c172 = "ANYDEDENT",
692
- peg$c173 = "RequiredWhitespace",
693
- peg$c174 = "OptionalWhitespace",
694
- peg$c175 = "InlineWhitespace",
695
- peg$c176 = /^[ \t]/,
696
- peg$c177 = "[ \\t]",
659
+ peg$c135 = "_",
660
+ peg$c136 = "\"_\"",
661
+ peg$c137 = "-",
662
+ peg$c138 = "\"-\"",
663
+ peg$c139 = "%",
664
+ peg$c140 = "\"%\"",
665
+ peg$c141 = "#",
666
+ peg$c142 = "\"#\"",
667
+ peg$c143 = function(c) { return c;},
668
+ peg$c144 = "CSSIdentifier",
669
+ peg$c145 = function(nmstart, nmchars) { return nmstart + nmchars; },
670
+ peg$c146 = /^[_a-zA-Z0-9\-]/,
671
+ peg$c147 = "[_a-zA-Z0-9\\-]",
672
+ peg$c148 = /^[_a-zA-Z]/,
673
+ peg$c149 = "[_a-zA-Z]",
674
+ peg$c150 = /^[\x80-\xFF]/,
675
+ peg$c151 = "[\\x80-\\xFF]",
676
+ peg$c152 = "KnownHTMLTagName",
677
+ peg$c153 = function(t) { return !!KNOWN_TAGS[t]; },
678
+ peg$c154 = function(t) { return t; },
679
+ peg$c155 = /^[:_a-zA-Z0-9\-]/,
680
+ peg$c156 = "[:_a-zA-Z0-9\\-]",
681
+ peg$c157 = "a JS event",
682
+ peg$c158 = function(t) { return !!KNOWN_EVENTS[t]; },
683
+ peg$c159 = "INDENT",
684
+ peg$c160 = "\uEFEF",
685
+ peg$c161 = "\"\\uEFEF\"",
686
+ peg$c162 = function() { return ''; },
687
+ peg$c163 = "DEDENT",
688
+ peg$c164 = "\uEFFE",
689
+ peg$c165 = "\"\\uEFFE\"",
690
+ peg$c166 = "Unmatched DEDENT",
691
+ peg$c167 = "\uEFEE",
692
+ peg$c168 = "\"\\uEFEE\"",
693
+ peg$c169 = "LineEnd",
694
+ peg$c170 = "\uEFFF",
695
+ peg$c171 = "\"\\uEFFF\"",
696
+ peg$c172 = "\n",
697
+ peg$c173 = "\"\\n\"",
698
+ peg$c174 = "ANYDEDENT",
699
+ peg$c175 = "RequiredWhitespace",
700
+ peg$c176 = "OptionalWhitespace",
701
+ peg$c177 = "InlineWhitespace",
702
+ peg$c178 = /^[ \t]/,
703
+ peg$c179 = "[ \\t]",
697
704
 
698
705
  peg$currPos = 0,
699
706
  peg$reportedPos = 0,
@@ -3662,7 +3669,10 @@ Emblem.Parser = (function() {
3662
3669
  if (s2 === null) {
3663
3670
  s2 = peg$parseboundAttribute();
3664
3671
  if (s2 === null) {
3665
- s2 = peg$parsenormalAttribute();
3672
+ s2 = peg$parserawMustacheAttribute();
3673
+ if (s2 === null) {
3674
+ s2 = peg$parsenormalAttribute();
3675
+ }
3666
3676
  }
3667
3677
  }
3668
3678
  if (s2 !== null) {
@@ -3956,7 +3966,7 @@ Emblem.Parser = (function() {
3956
3966
  }
3957
3967
 
3958
3968
  function peg$parseboundAttribute() {
3959
- var s0, s1, s2, s3;
3969
+ var s0, s1, s2, s3, s4;
3960
3970
 
3961
3971
  s0 = peg$currPos;
3962
3972
  s1 = peg$parsekey();
@@ -3970,9 +3980,61 @@ Emblem.Parser = (function() {
3970
3980
  }
3971
3981
  if (s2 !== null) {
3972
3982
  s3 = peg$parseboundAttributeValue();
3983
+ if (s3 !== null) {
3984
+ peg$reportedPos = peg$currPos;
3985
+ s4 = peg$c131(s1,s3);
3986
+ if (s4) {
3987
+ s4 = peg$c1;
3988
+ } else {
3989
+ s4 = peg$c0;
3990
+ }
3991
+ if (s4 !== null) {
3992
+ peg$reportedPos = s0;
3993
+ s1 = peg$c132(s1,s3);
3994
+ if (s1 === null) {
3995
+ peg$currPos = s0;
3996
+ s0 = s1;
3997
+ } else {
3998
+ s0 = s1;
3999
+ }
4000
+ } else {
4001
+ peg$currPos = s0;
4002
+ s0 = peg$c0;
4003
+ }
4004
+ } else {
4005
+ peg$currPos = s0;
4006
+ s0 = peg$c0;
4007
+ }
4008
+ } else {
4009
+ peg$currPos = s0;
4010
+ s0 = peg$c0;
4011
+ }
4012
+ } else {
4013
+ peg$currPos = s0;
4014
+ s0 = peg$c0;
4015
+ }
4016
+
4017
+ return s0;
4018
+ }
4019
+
4020
+ function peg$parserawMustacheAttribute() {
4021
+ var s0, s1, s2, s3;
4022
+
4023
+ s0 = peg$currPos;
4024
+ s1 = peg$parsekey();
4025
+ if (s1 !== null) {
4026
+ if (input.charCodeAt(peg$currPos) === 61) {
4027
+ s2 = peg$c25;
4028
+ peg$currPos++;
4029
+ } else {
4030
+ s2 = null;
4031
+ if (peg$silentFails === 0) { peg$fail(peg$c26); }
4032
+ }
4033
+ if (s2 !== null) {
4034
+ s3 = peg$parsepathIdNode();
3973
4035
  if (s3 !== null) {
3974
4036
  peg$reportedPos = s0;
3975
- s1 = peg$c131(s1,s3);
4037
+ s1 = peg$c133(s1,s3);
3976
4038
  if (s1 === null) {
3977
4039
  peg$currPos = s0;
3978
4040
  s0 = s1;
@@ -4012,7 +4074,7 @@ Emblem.Parser = (function() {
4012
4074
  s3 = peg$parsestring();
4013
4075
  if (s3 !== null) {
4014
4076
  peg$reportedPos = s0;
4015
- s1 = peg$c132(s1,s3);
4077
+ s1 = peg$c134(s1,s3);
4016
4078
  if (s1 === null) {
4017
4079
  peg$currPos = s0;
4018
4080
  s0 = s1;
@@ -4078,19 +4140,19 @@ Emblem.Parser = (function() {
4078
4140
  }
4079
4141
  if (s0 === null) {
4080
4142
  if (input.charCodeAt(peg$currPos) === 95) {
4081
- s0 = peg$c133;
4143
+ s0 = peg$c135;
4082
4144
  peg$currPos++;
4083
4145
  } else {
4084
4146
  s0 = null;
4085
- if (peg$silentFails === 0) { peg$fail(peg$c134); }
4147
+ if (peg$silentFails === 0) { peg$fail(peg$c136); }
4086
4148
  }
4087
4149
  if (s0 === null) {
4088
4150
  if (input.charCodeAt(peg$currPos) === 45) {
4089
- s0 = peg$c135;
4151
+ s0 = peg$c137;
4090
4152
  peg$currPos++;
4091
4153
  } else {
4092
4154
  s0 = null;
4093
- if (peg$silentFails === 0) { peg$fail(peg$c136); }
4155
+ if (peg$silentFails === 0) { peg$fail(peg$c138); }
4094
4156
  }
4095
4157
  }
4096
4158
  }
@@ -4104,11 +4166,11 @@ Emblem.Parser = (function() {
4104
4166
 
4105
4167
  s0 = peg$currPos;
4106
4168
  if (input.charCodeAt(peg$currPos) === 37) {
4107
- s1 = peg$c137;
4169
+ s1 = peg$c139;
4108
4170
  peg$currPos++;
4109
4171
  } else {
4110
4172
  s1 = null;
4111
- if (peg$silentFails === 0) { peg$fail(peg$c138); }
4173
+ if (peg$silentFails === 0) { peg$fail(peg$c140); }
4112
4174
  }
4113
4175
  if (s1 !== null) {
4114
4176
  s2 = peg$parsecssIdentifier();
@@ -4138,17 +4200,17 @@ Emblem.Parser = (function() {
4138
4200
 
4139
4201
  s0 = peg$currPos;
4140
4202
  if (input.charCodeAt(peg$currPos) === 35) {
4141
- s1 = peg$c139;
4203
+ s1 = peg$c141;
4142
4204
  peg$currPos++;
4143
4205
  } else {
4144
4206
  s1 = null;
4145
- if (peg$silentFails === 0) { peg$fail(peg$c140); }
4207
+ if (peg$silentFails === 0) { peg$fail(peg$c142); }
4146
4208
  }
4147
4209
  if (s1 !== null) {
4148
4210
  s2 = peg$parsecssIdentifier();
4149
4211
  if (s2 !== null) {
4150
4212
  peg$reportedPos = s0;
4151
- s1 = peg$c141(s2);
4213
+ s1 = peg$c143(s2);
4152
4214
  if (s1 === null) {
4153
4215
  peg$currPos = s0;
4154
4216
  s0 = s1;
@@ -4209,7 +4271,7 @@ Emblem.Parser = (function() {
4209
4271
  peg$silentFails--;
4210
4272
  if (s0 === null) {
4211
4273
  s1 = null;
4212
- if (peg$silentFails === 0) { peg$fail(peg$c142); }
4274
+ if (peg$silentFails === 0) { peg$fail(peg$c144); }
4213
4275
  }
4214
4276
 
4215
4277
  return s0;
@@ -4234,7 +4296,7 @@ Emblem.Parser = (function() {
4234
4296
  s2 = s3;
4235
4297
  if (s2 !== null) {
4236
4298
  peg$reportedPos = s0;
4237
- s1 = peg$c143(s1,s2);
4299
+ s1 = peg$c145(s1,s2);
4238
4300
  if (s1 === null) {
4239
4301
  peg$currPos = s0;
4240
4302
  s0 = s1;
@@ -4256,12 +4318,12 @@ Emblem.Parser = (function() {
4256
4318
  function peg$parsenmchar() {
4257
4319
  var s0;
4258
4320
 
4259
- if (peg$c144.test(input.charAt(peg$currPos))) {
4321
+ if (peg$c146.test(input.charAt(peg$currPos))) {
4260
4322
  s0 = input.charAt(peg$currPos);
4261
4323
  peg$currPos++;
4262
4324
  } else {
4263
4325
  s0 = null;
4264
- if (peg$silentFails === 0) { peg$fail(peg$c145); }
4326
+ if (peg$silentFails === 0) { peg$fail(peg$c147); }
4265
4327
  }
4266
4328
  if (s0 === null) {
4267
4329
  s0 = peg$parsenonascii();
@@ -4273,12 +4335,12 @@ Emblem.Parser = (function() {
4273
4335
  function peg$parsenmstart() {
4274
4336
  var s0;
4275
4337
 
4276
- if (peg$c146.test(input.charAt(peg$currPos))) {
4338
+ if (peg$c148.test(input.charAt(peg$currPos))) {
4277
4339
  s0 = input.charAt(peg$currPos);
4278
4340
  peg$currPos++;
4279
4341
  } else {
4280
4342
  s0 = null;
4281
- if (peg$silentFails === 0) { peg$fail(peg$c147); }
4343
+ if (peg$silentFails === 0) { peg$fail(peg$c149); }
4282
4344
  }
4283
4345
  if (s0 === null) {
4284
4346
  s0 = peg$parsenonascii();
@@ -4290,12 +4352,12 @@ Emblem.Parser = (function() {
4290
4352
  function peg$parsenonascii() {
4291
4353
  var s0;
4292
4354
 
4293
- if (peg$c148.test(input.charAt(peg$currPos))) {
4355
+ if (peg$c150.test(input.charAt(peg$currPos))) {
4294
4356
  s0 = input.charAt(peg$currPos);
4295
4357
  peg$currPos++;
4296
4358
  } else {
4297
4359
  s0 = null;
4298
- if (peg$silentFails === 0) { peg$fail(peg$c149); }
4360
+ if (peg$silentFails === 0) { peg$fail(peg$c151); }
4299
4361
  }
4300
4362
 
4301
4363
  return s0;
@@ -4329,11 +4391,11 @@ Emblem.Parser = (function() {
4329
4391
  peg$silentFails++;
4330
4392
  s0 = peg$currPos;
4331
4393
  if (input.charCodeAt(peg$currPos) === 37) {
4332
- s1 = peg$c137;
4394
+ s1 = peg$c139;
4333
4395
  peg$currPos++;
4334
4396
  } else {
4335
4397
  s1 = null;
4336
- if (peg$silentFails === 0) { peg$fail(peg$c138); }
4398
+ if (peg$silentFails === 0) { peg$fail(peg$c140); }
4337
4399
  }
4338
4400
  if (s1 !== null) {
4339
4401
  s2 = peg$parsetagString();
@@ -4360,7 +4422,7 @@ Emblem.Parser = (function() {
4360
4422
  peg$silentFails--;
4361
4423
  if (s0 === null) {
4362
4424
  s1 = null;
4363
- if (peg$silentFails === 0) { peg$fail(peg$c150); }
4425
+ if (peg$silentFails === 0) { peg$fail(peg$c152); }
4364
4426
  }
4365
4427
 
4366
4428
  return s0;
@@ -4373,7 +4435,7 @@ Emblem.Parser = (function() {
4373
4435
  s1 = peg$parsetagString();
4374
4436
  if (s1 !== null) {
4375
4437
  peg$reportedPos = peg$currPos;
4376
- s2 = peg$c151(s1);
4438
+ s2 = peg$c153(s1);
4377
4439
  if (s2) {
4378
4440
  s2 = peg$c1;
4379
4441
  } else {
@@ -4381,7 +4443,7 @@ Emblem.Parser = (function() {
4381
4443
  }
4382
4444
  if (s2 !== null) {
4383
4445
  peg$reportedPos = s0;
4384
- s1 = peg$c152(s1);
4446
+ s1 = peg$c154(s1);
4385
4447
  if (s1 === null) {
4386
4448
  peg$currPos = s0;
4387
4449
  s0 = s1;
@@ -4403,12 +4465,12 @@ Emblem.Parser = (function() {
4403
4465
  function peg$parsetagChar() {
4404
4466
  var s0;
4405
4467
 
4406
- if (peg$c153.test(input.charAt(peg$currPos))) {
4468
+ if (peg$c155.test(input.charAt(peg$currPos))) {
4407
4469
  s0 = input.charAt(peg$currPos);
4408
4470
  peg$currPos++;
4409
4471
  } else {
4410
4472
  s0 = null;
4411
- if (peg$silentFails === 0) { peg$fail(peg$c154); }
4473
+ if (peg$silentFails === 0) { peg$fail(peg$c156); }
4412
4474
  }
4413
4475
 
4414
4476
  return s0;
@@ -4422,7 +4484,7 @@ Emblem.Parser = (function() {
4422
4484
  s1 = peg$parsetagString();
4423
4485
  if (s1 !== null) {
4424
4486
  peg$reportedPos = peg$currPos;
4425
- s2 = peg$c156(s1);
4487
+ s2 = peg$c158(s1);
4426
4488
  if (s2) {
4427
4489
  s2 = peg$c1;
4428
4490
  } else {
@@ -4430,7 +4492,7 @@ Emblem.Parser = (function() {
4430
4492
  }
4431
4493
  if (s2 !== null) {
4432
4494
  peg$reportedPos = s0;
4433
- s1 = peg$c152(s1);
4495
+ s1 = peg$c154(s1);
4434
4496
  if (s1 === null) {
4435
4497
  peg$currPos = s0;
4436
4498
  s0 = s1;
@@ -4448,7 +4510,7 @@ Emblem.Parser = (function() {
4448
4510
  peg$silentFails--;
4449
4511
  if (s0 === null) {
4450
4512
  s1 = null;
4451
- if (peg$silentFails === 0) { peg$fail(peg$c155); }
4513
+ if (peg$silentFails === 0) { peg$fail(peg$c157); }
4452
4514
  }
4453
4515
 
4454
4516
  return s0;
@@ -4488,15 +4550,15 @@ Emblem.Parser = (function() {
4488
4550
  peg$silentFails++;
4489
4551
  s0 = peg$currPos;
4490
4552
  if (input.charCodeAt(peg$currPos) === 61423) {
4491
- s1 = peg$c158;
4553
+ s1 = peg$c160;
4492
4554
  peg$currPos++;
4493
4555
  } else {
4494
4556
  s1 = null;
4495
- if (peg$silentFails === 0) { peg$fail(peg$c159); }
4557
+ if (peg$silentFails === 0) { peg$fail(peg$c161); }
4496
4558
  }
4497
4559
  if (s1 !== null) {
4498
4560
  peg$reportedPos = s0;
4499
- s1 = peg$c160();
4561
+ s1 = peg$c162();
4500
4562
  }
4501
4563
  if (s1 === null) {
4502
4564
  peg$currPos = s0;
@@ -4507,7 +4569,7 @@ Emblem.Parser = (function() {
4507
4569
  peg$silentFails--;
4508
4570
  if (s0 === null) {
4509
4571
  s1 = null;
4510
- if (peg$silentFails === 0) { peg$fail(peg$c157); }
4572
+ if (peg$silentFails === 0) { peg$fail(peg$c159); }
4511
4573
  }
4512
4574
 
4513
4575
  return s0;
@@ -4519,15 +4581,15 @@ Emblem.Parser = (function() {
4519
4581
  peg$silentFails++;
4520
4582
  s0 = peg$currPos;
4521
4583
  if (input.charCodeAt(peg$currPos) === 61438) {
4522
- s1 = peg$c162;
4584
+ s1 = peg$c164;
4523
4585
  peg$currPos++;
4524
4586
  } else {
4525
4587
  s1 = null;
4526
- if (peg$silentFails === 0) { peg$fail(peg$c163); }
4588
+ if (peg$silentFails === 0) { peg$fail(peg$c165); }
4527
4589
  }
4528
4590
  if (s1 !== null) {
4529
4591
  peg$reportedPos = s0;
4530
- s1 = peg$c160();
4592
+ s1 = peg$c162();
4531
4593
  }
4532
4594
  if (s1 === null) {
4533
4595
  peg$currPos = s0;
@@ -4538,7 +4600,7 @@ Emblem.Parser = (function() {
4538
4600
  peg$silentFails--;
4539
4601
  if (s0 === null) {
4540
4602
  s1 = null;
4541
- if (peg$silentFails === 0) { peg$fail(peg$c161); }
4603
+ if (peg$silentFails === 0) { peg$fail(peg$c163); }
4542
4604
  }
4543
4605
 
4544
4606
  return s0;
@@ -4550,15 +4612,15 @@ Emblem.Parser = (function() {
4550
4612
  peg$silentFails++;
4551
4613
  s0 = peg$currPos;
4552
4614
  if (input.charCodeAt(peg$currPos) === 61422) {
4553
- s1 = peg$c165;
4615
+ s1 = peg$c167;
4554
4616
  peg$currPos++;
4555
4617
  } else {
4556
4618
  s1 = null;
4557
- if (peg$silentFails === 0) { peg$fail(peg$c166); }
4619
+ if (peg$silentFails === 0) { peg$fail(peg$c168); }
4558
4620
  }
4559
4621
  if (s1 !== null) {
4560
4622
  peg$reportedPos = s0;
4561
- s1 = peg$c160();
4623
+ s1 = peg$c162();
4562
4624
  }
4563
4625
  if (s1 === null) {
4564
4626
  peg$currPos = s0;
@@ -4569,7 +4631,7 @@ Emblem.Parser = (function() {
4569
4631
  peg$silentFails--;
4570
4632
  if (s0 === null) {
4571
4633
  s1 = null;
4572
- if (peg$silentFails === 0) { peg$fail(peg$c164); }
4634
+ if (peg$silentFails === 0) { peg$fail(peg$c166); }
4573
4635
  }
4574
4636
 
4575
4637
  return s0;
@@ -4581,19 +4643,19 @@ Emblem.Parser = (function() {
4581
4643
  peg$silentFails++;
4582
4644
  s0 = peg$currPos;
4583
4645
  if (input.charCodeAt(peg$currPos) === 61439) {
4584
- s1 = peg$c168;
4646
+ s1 = peg$c170;
4585
4647
  peg$currPos++;
4586
4648
  } else {
4587
4649
  s1 = null;
4588
- if (peg$silentFails === 0) { peg$fail(peg$c169); }
4650
+ if (peg$silentFails === 0) { peg$fail(peg$c171); }
4589
4651
  }
4590
4652
  if (s1 !== null) {
4591
4653
  if (input.charCodeAt(peg$currPos) === 10) {
4592
- s2 = peg$c170;
4654
+ s2 = peg$c172;
4593
4655
  peg$currPos++;
4594
4656
  } else {
4595
4657
  s2 = null;
4596
- if (peg$silentFails === 0) { peg$fail(peg$c171); }
4658
+ if (peg$silentFails === 0) { peg$fail(peg$c173); }
4597
4659
  }
4598
4660
  if (s2 !== null) {
4599
4661
  s1 = [s1, s2];
@@ -4609,7 +4671,7 @@ Emblem.Parser = (function() {
4609
4671
  peg$silentFails--;
4610
4672
  if (s0 === null) {
4611
4673
  s1 = null;
4612
- if (peg$silentFails === 0) { peg$fail(peg$c167); }
4674
+ if (peg$silentFails === 0) { peg$fail(peg$c169); }
4613
4675
  }
4614
4676
 
4615
4677
  return s0;
@@ -4626,7 +4688,7 @@ Emblem.Parser = (function() {
4626
4688
  peg$silentFails--;
4627
4689
  if (s0 === null) {
4628
4690
  s1 = null;
4629
- if (peg$silentFails === 0) { peg$fail(peg$c172); }
4691
+ if (peg$silentFails === 0) { peg$fail(peg$c174); }
4630
4692
  }
4631
4693
 
4632
4694
  return s0;
@@ -4654,7 +4716,7 @@ Emblem.Parser = (function() {
4654
4716
  peg$silentFails--;
4655
4717
  if (s0 === null) {
4656
4718
  s1 = null;
4657
- if (peg$silentFails === 0) { peg$fail(peg$c173); }
4719
+ if (peg$silentFails === 0) { peg$fail(peg$c175); }
4658
4720
  }
4659
4721
 
4660
4722
  return s0;
@@ -4673,7 +4735,7 @@ Emblem.Parser = (function() {
4673
4735
  peg$silentFails--;
4674
4736
  if (s0 === null) {
4675
4737
  s1 = null;
4676
- if (peg$silentFails === 0) { peg$fail(peg$c174); }
4738
+ if (peg$silentFails === 0) { peg$fail(peg$c176); }
4677
4739
  }
4678
4740
 
4679
4741
  return s0;
@@ -4683,17 +4745,17 @@ Emblem.Parser = (function() {
4683
4745
  var s0, s1;
4684
4746
 
4685
4747
  peg$silentFails++;
4686
- if (peg$c176.test(input.charAt(peg$currPos))) {
4748
+ if (peg$c178.test(input.charAt(peg$currPos))) {
4687
4749
  s0 = input.charAt(peg$currPos);
4688
4750
  peg$currPos++;
4689
4751
  } else {
4690
4752
  s0 = null;
4691
- if (peg$silentFails === 0) { peg$fail(peg$c177); }
4753
+ if (peg$silentFails === 0) { peg$fail(peg$c179); }
4692
4754
  }
4693
4755
  peg$silentFails--;
4694
4756
  if (s0 === null) {
4695
4757
  s1 = null;
4696
- if (peg$silentFails === 0) { peg$fail(peg$c175); }
4758
+ if (peg$silentFails === 0) { peg$fail(peg$c177); }
4697
4759
  }
4698
4760
 
4699
4761
  return s0;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: barber-emblem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
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: 2013-02-15 00:00:00.000000000 Z
12
+ date: 2013-02-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: barber