emblem-source 0.3.12 → 0.3.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/dist/emblem.js +304 -228
- data/dist/emblem.min.js +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02bed63eb769eaed1374016b2b63ff0435a02edc
|
4
|
+
data.tar.gz: 6e01bc1dc9f5d1cf486b4137bc5c7b8f9b7701a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 305832b4c5515872c834ba31db9b672fdd2ad4b067c99e0bd5d6233b0fec483f68d2c94591e5a8cedc14ea213247e115077d9959c5e6c84f48cc19a92262e8a4
|
7
|
+
data.tar.gz: 442f4e451498c90d3b59ff04ab5a160297902f1c1e3b0634a8e154e0a0befbbe0d1c8ff19a7935a61d43a19e4cf8e23bc87b9c25a3d1ca83af3320008fc3ffdc
|
data/dist/emblem.js
CHANGED
@@ -103,7 +103,7 @@ this.Emblem = {};
|
|
103
103
|
|
104
104
|
Emblem = this.Emblem;
|
105
105
|
|
106
|
-
Emblem.VERSION = "0.3.
|
106
|
+
Emblem.VERSION = "0.3.13";
|
107
107
|
|
108
108
|
module.exports = Emblem;
|
109
109
|
|
@@ -521,50 +521,60 @@ Emblem.Parser = (function() {
|
|
521
521
|
peg$c100 = function(first, tail) { return textNodesResult(first, tail); },
|
522
522
|
peg$c101 = "{",
|
523
523
|
peg$c102 = "\"{\"",
|
524
|
-
peg$c103 =
|
525
|
-
peg$c104 = "
|
526
|
-
peg$c105 = function(
|
524
|
+
peg$c103 = "@index",
|
525
|
+
peg$c104 = "\"@index\"",
|
526
|
+
peg$c105 = function() {
|
527
|
+
|
528
|
+
var params = {};
|
529
|
+
var idNode = new AST.IdNode([{part: "index"}]);
|
530
|
+
var dataNode = new AST.DataNode(idNode);
|
531
|
+
params = dataNode;
|
532
|
+
return new AST.MustacheNode([params], null, false);
|
533
|
+
},
|
534
|
+
peg$c106 = /^[^}]/,
|
535
|
+
peg$c107 = "[^}]",
|
536
|
+
peg$c108 = function(text) {
|
527
537
|
// Force interpretation as mustache.
|
528
538
|
// TODO: change to just parse with a specific rule?
|
529
539
|
text = "=" + text;
|
530
540
|
return Emblem.parse(text).statements[0];
|
531
541
|
},
|
532
|
-
peg$
|
533
|
-
peg$
|
534
|
-
peg$
|
535
|
-
peg$
|
536
|
-
peg$
|
537
|
-
peg$
|
538
|
-
peg$
|
539
|
-
peg$
|
540
|
-
peg$
|
541
|
-
peg$
|
542
|
-
peg$
|
543
|
-
peg$
|
544
|
-
peg$
|
545
|
-
peg$
|
546
|
-
peg$
|
547
|
-
peg$
|
548
|
-
peg$
|
549
|
-
peg$
|
550
|
-
peg$
|
551
|
-
peg$
|
552
|
-
peg$
|
553
|
-
peg$
|
554
|
-
peg$
|
555
|
-
peg$
|
556
|
-
peg$
|
557
|
-
peg$
|
558
|
-
peg$
|
559
|
-
peg$
|
560
|
-
peg$
|
561
|
-
peg$
|
562
|
-
peg$
|
563
|
-
peg$
|
564
|
-
peg$
|
565
|
-
peg$
|
566
|
-
peg$
|
567
|
-
peg$
|
542
|
+
peg$c109 = function(m) { m.escaped = true; return m; },
|
543
|
+
peg$c110 = function(m) { m.escaped = false; return m; },
|
544
|
+
peg$c111 = function(a) { return new AST.ContentNode(a); },
|
545
|
+
peg$c112 = "any character",
|
546
|
+
peg$c113 = "SingleMustacheOpen",
|
547
|
+
peg$c114 = "DoubleMustacheOpen",
|
548
|
+
peg$c115 = "{{",
|
549
|
+
peg$c116 = "\"{{\"",
|
550
|
+
peg$c117 = "TripleMustacheOpen",
|
551
|
+
peg$c118 = "{{{",
|
552
|
+
peg$c119 = "\"{{{\"",
|
553
|
+
peg$c120 = "SingleMustacheClose",
|
554
|
+
peg$c121 = "}",
|
555
|
+
peg$c122 = "\"}\"",
|
556
|
+
peg$c123 = "DoubleMustacheClose",
|
557
|
+
peg$c124 = "}}",
|
558
|
+
peg$c125 = "\"}}\"",
|
559
|
+
peg$c126 = "TripleMustacheClose",
|
560
|
+
peg$c127 = "}}}",
|
561
|
+
peg$c128 = "\"}}}\"",
|
562
|
+
peg$c129 = "SubexpressionOpen",
|
563
|
+
peg$c130 = "(",
|
564
|
+
peg$c131 = "\"(\"",
|
565
|
+
peg$c132 = "SubexpressionClose",
|
566
|
+
peg$c133 = ")",
|
567
|
+
peg$c134 = "\")\"",
|
568
|
+
peg$c135 = "InterpolationOpen",
|
569
|
+
peg$c136 = "#{",
|
570
|
+
peg$c137 = "\"#{\"",
|
571
|
+
peg$c138 = "InterpolationClose",
|
572
|
+
peg$c139 = "==",
|
573
|
+
peg$c140 = "\"==\"",
|
574
|
+
peg$c141 = function() { return false; },
|
575
|
+
peg$c142 = function() { return true; },
|
576
|
+
peg$c143 = function(h, s) { return h || s; },
|
577
|
+
peg$c144 = function(h, inTagMustaches, fullAttributes) {
|
568
578
|
var tagName = h[0] || 'div',
|
569
579
|
shorthandAttributes = h[1] || [],
|
570
580
|
id = shorthandAttributes[0],
|
@@ -657,9 +667,9 @@ Emblem.Parser = (function() {
|
|
657
667
|
return [tagOpenContent, new AST.ContentNode('</' + tagName + '>')];
|
658
668
|
}
|
659
669
|
},
|
660
|
-
peg$
|
661
|
-
peg$
|
662
|
-
peg$
|
670
|
+
peg$c145 = function(s) { return { shorthand: s, id: true}; },
|
671
|
+
peg$c146 = function(s) { return { shorthand: s }; },
|
672
|
+
peg$c147 = function(shorthands) {
|
663
673
|
var id, classes = [];
|
664
674
|
for(var i = 0, len = shorthands.length; i < len; ++i) {
|
665
675
|
var shorthand = shorthands[i];
|
@@ -672,42 +682,42 @@ Emblem.Parser = (function() {
|
|
672
682
|
|
673
683
|
return [id, classes];
|
674
684
|
},
|
675
|
-
peg$
|
685
|
+
peg$c148 = function(a) {
|
676
686
|
if (a.length) {
|
677
687
|
return [new AST.ContentNode(' ')].concat(a);
|
678
688
|
} else {
|
679
689
|
return [];
|
680
690
|
}
|
681
691
|
},
|
682
|
-
peg$
|
683
|
-
peg$
|
684
|
-
peg$
|
685
|
-
peg$
|
692
|
+
peg$c149 = /^[A-Za-z.0-9_\-]/,
|
693
|
+
peg$c150 = "[A-Za-z.0-9_\\-]",
|
694
|
+
peg$c151 = function(id) { return createMustacheNode([id], null, true); },
|
695
|
+
peg$c152 = function(event, mustacheNode) {
|
686
696
|
// Replace the IdNode with a StringNode to prevent unquoted action deprecation warnings
|
687
697
|
mustacheNode.id = new AST.StringNode(mustacheNode.id.string);
|
688
698
|
|
689
699
|
// Unshift the action helper and augment the hash
|
690
700
|
return [unshiftParam(mustacheNode, 'action', [['on', new AST.StringNode(event)]])];
|
691
701
|
},
|
692
|
-
peg$
|
702
|
+
peg$c153 = function(key, boolValue) {
|
693
703
|
if (boolValue === 'true') {
|
694
704
|
return [ new AST.ContentNode(key) ];
|
695
705
|
} else {
|
696
706
|
return [];
|
697
707
|
}
|
698
708
|
},
|
699
|
-
peg$
|
700
|
-
peg$
|
701
|
-
peg$
|
702
|
-
peg$
|
703
|
-
peg$
|
709
|
+
peg$c154 = function(value) { return value.replace(/ *$/, ''); },
|
710
|
+
peg$c155 = "!",
|
711
|
+
peg$c156 = "\"!\"",
|
712
|
+
peg$c157 = function(key, value) { return IS_EMBER; },
|
713
|
+
peg$c158 = function(key, value) {
|
704
714
|
var hashNode = new AST.HashNode([[key, new AST.StringNode(value)]]);
|
705
715
|
var params = [new AST.IdNode([{part: 'bind-attr'}])];
|
706
716
|
var mustacheNode = createMustacheNode(params, hashNode);
|
707
717
|
|
708
718
|
return [mustacheNode];
|
709
719
|
},
|
710
|
-
peg$
|
720
|
+
peg$c159 = function(key, id) {
|
711
721
|
var mustacheNode = createMustacheNode([id], null, true);
|
712
722
|
|
713
723
|
if(IS_EMBER && id._emblemSuffixModifier === '!') {
|
@@ -720,52 +730,52 @@ Emblem.Parser = (function() {
|
|
720
730
|
new AST.ContentNode('"'),
|
721
731
|
];
|
722
732
|
},
|
723
|
-
peg$
|
733
|
+
peg$c160 = function(key, nodes) {
|
724
734
|
var result = [ new AST.ContentNode(key + '=' + '"') ].concat(nodes);
|
725
735
|
return result.concat([new AST.ContentNode('"')]);
|
726
736
|
},
|
727
|
-
peg$
|
728
|
-
peg$
|
729
|
-
peg$
|
730
|
-
peg$
|
731
|
-
peg$
|
732
|
-
peg$
|
733
|
-
peg$
|
734
|
-
peg$
|
735
|
-
peg$
|
736
|
-
peg$
|
737
|
-
peg$
|
738
|
-
peg$
|
739
|
-
peg$
|
740
|
-
peg$
|
741
|
-
peg$
|
742
|
-
peg$
|
743
|
-
peg$
|
744
|
-
peg$
|
745
|
-
peg$
|
746
|
-
peg$
|
747
|
-
peg$
|
748
|
-
peg$
|
749
|
-
peg$
|
750
|
-
peg$
|
751
|
-
peg$
|
752
|
-
peg$
|
753
|
-
peg$
|
754
|
-
peg$
|
755
|
-
peg$
|
756
|
-
peg$
|
757
|
-
peg$
|
758
|
-
peg$
|
759
|
-
peg$
|
760
|
-
peg$
|
761
|
-
peg$
|
762
|
-
peg$
|
763
|
-
peg$
|
764
|
-
peg$
|
765
|
-
peg$
|
766
|
-
peg$
|
767
|
-
peg$
|
768
|
-
peg$
|
737
|
+
peg$c161 = "_",
|
738
|
+
peg$c162 = "\"_\"",
|
739
|
+
peg$c163 = "%",
|
740
|
+
peg$c164 = "\"%\"",
|
741
|
+
peg$c165 = "#",
|
742
|
+
peg$c166 = "\"#\"",
|
743
|
+
peg$c167 = function(c) { return c;},
|
744
|
+
peg$c168 = "CSSIdentifier",
|
745
|
+
peg$c169 = /^[_a-zA-Z0-9\-]/,
|
746
|
+
peg$c170 = "[_a-zA-Z0-9\\-]",
|
747
|
+
peg$c171 = /^[_a-zA-Z]/,
|
748
|
+
peg$c172 = "[_a-zA-Z]",
|
749
|
+
peg$c173 = /^[\x80-\xFF]/,
|
750
|
+
peg$c174 = "[\\x80-\\xFF]",
|
751
|
+
peg$c175 = "KnownHTMLTagName",
|
752
|
+
peg$c176 = function(t) { return !!KNOWN_TAGS[t]; },
|
753
|
+
peg$c177 = function(t) { return t; },
|
754
|
+
peg$c178 = "a JS event",
|
755
|
+
peg$c179 = function(t) { return !!KNOWN_EVENTS[t]; },
|
756
|
+
peg$c180 = "INDENT",
|
757
|
+
peg$c181 = "\uEFEF",
|
758
|
+
peg$c182 = "\"\\uEFEF\"",
|
759
|
+
peg$c183 = function() { return ''; },
|
760
|
+
peg$c184 = "DEDENT",
|
761
|
+
peg$c185 = "\uEFFE",
|
762
|
+
peg$c186 = "\"\\uEFFE\"",
|
763
|
+
peg$c187 = "Unmatched DEDENT",
|
764
|
+
peg$c188 = "\uEFEE",
|
765
|
+
peg$c189 = "\"\\uEFEE\"",
|
766
|
+
peg$c190 = "LineEnd",
|
767
|
+
peg$c191 = "\r",
|
768
|
+
peg$c192 = "\"\\r\"",
|
769
|
+
peg$c193 = "\uEFFF",
|
770
|
+
peg$c194 = "\"\\uEFFF\"",
|
771
|
+
peg$c195 = "\n",
|
772
|
+
peg$c196 = "\"\\n\"",
|
773
|
+
peg$c197 = "ANYDEDENT",
|
774
|
+
peg$c198 = "RequiredWhitespace",
|
775
|
+
peg$c199 = "OptionalWhitespace",
|
776
|
+
peg$c200 = "InlineWhitespace",
|
777
|
+
peg$c201 = /^[ \t]/,
|
778
|
+
peg$c202 = "[ \\t]",
|
769
779
|
|
770
780
|
peg$currPos = 0,
|
771
781
|
peg$reportedPos = 0,
|
@@ -3476,6 +3486,61 @@ Emblem.Parser = (function() {
|
|
3476
3486
|
return s0;
|
3477
3487
|
}
|
3478
3488
|
|
3489
|
+
function peg$parseeachIndex() {
|
3490
|
+
var s0, s1, s2, s3;
|
3491
|
+
|
3492
|
+
s0 = peg$currPos;
|
3493
|
+
s1 = peg$currPos;
|
3494
|
+
peg$silentFails++;
|
3495
|
+
if (input.charCodeAt(peg$currPos) === 123) {
|
3496
|
+
s2 = peg$c101;
|
3497
|
+
peg$currPos++;
|
3498
|
+
} else {
|
3499
|
+
s2 = null;
|
3500
|
+
if (peg$silentFails === 0) { peg$fail(peg$c102); }
|
3501
|
+
}
|
3502
|
+
peg$silentFails--;
|
3503
|
+
if (s2 === null) {
|
3504
|
+
s1 = peg$c1;
|
3505
|
+
} else {
|
3506
|
+
peg$currPos = s1;
|
3507
|
+
s1 = peg$c0;
|
3508
|
+
}
|
3509
|
+
if (s1 !== null) {
|
3510
|
+
s2 = peg$parse_();
|
3511
|
+
if (s2 !== null) {
|
3512
|
+
if (input.substr(peg$currPos, 6) === peg$c103) {
|
3513
|
+
s3 = peg$c103;
|
3514
|
+
peg$currPos += 6;
|
3515
|
+
} else {
|
3516
|
+
s3 = null;
|
3517
|
+
if (peg$silentFails === 0) { peg$fail(peg$c104); }
|
3518
|
+
}
|
3519
|
+
if (s3 !== null) {
|
3520
|
+
peg$reportedPos = s0;
|
3521
|
+
s1 = peg$c105();
|
3522
|
+
if (s1 === null) {
|
3523
|
+
peg$currPos = s0;
|
3524
|
+
s0 = s1;
|
3525
|
+
} else {
|
3526
|
+
s0 = s1;
|
3527
|
+
}
|
3528
|
+
} else {
|
3529
|
+
peg$currPos = s0;
|
3530
|
+
s0 = peg$c0;
|
3531
|
+
}
|
3532
|
+
} else {
|
3533
|
+
peg$currPos = s0;
|
3534
|
+
s0 = peg$c0;
|
3535
|
+
}
|
3536
|
+
} else {
|
3537
|
+
peg$currPos = s0;
|
3538
|
+
s0 = peg$c0;
|
3539
|
+
}
|
3540
|
+
|
3541
|
+
return s0;
|
3542
|
+
}
|
3543
|
+
|
3479
3544
|
function peg$parserecursivelyParsedMustacheContent() {
|
3480
3545
|
var s0, s1, s2, s3, s4;
|
3481
3546
|
|
@@ -3499,21 +3564,21 @@ Emblem.Parser = (function() {
|
|
3499
3564
|
if (s1 !== null) {
|
3500
3565
|
s2 = peg$currPos;
|
3501
3566
|
s3 = [];
|
3502
|
-
if (peg$
|
3567
|
+
if (peg$c106.test(input.charAt(peg$currPos))) {
|
3503
3568
|
s4 = input.charAt(peg$currPos);
|
3504
3569
|
peg$currPos++;
|
3505
3570
|
} else {
|
3506
3571
|
s4 = null;
|
3507
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
3572
|
+
if (peg$silentFails === 0) { peg$fail(peg$c107); }
|
3508
3573
|
}
|
3509
3574
|
while (s4 !== null) {
|
3510
3575
|
s3.push(s4);
|
3511
|
-
if (peg$
|
3576
|
+
if (peg$c106.test(input.charAt(peg$currPos))) {
|
3512
3577
|
s4 = input.charAt(peg$currPos);
|
3513
3578
|
peg$currPos++;
|
3514
3579
|
} else {
|
3515
3580
|
s4 = null;
|
3516
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
3581
|
+
if (peg$silentFails === 0) { peg$fail(peg$c107); }
|
3517
3582
|
}
|
3518
3583
|
}
|
3519
3584
|
if (s3 !== null) {
|
@@ -3522,7 +3587,7 @@ Emblem.Parser = (function() {
|
|
3522
3587
|
s2 = s3;
|
3523
3588
|
if (s2 !== null) {
|
3524
3589
|
peg$reportedPos = s0;
|
3525
|
-
s1 = peg$
|
3590
|
+
s1 = peg$c108(s2);
|
3526
3591
|
if (s1 === null) {
|
3527
3592
|
peg$currPos = s0;
|
3528
3593
|
s0 = s1;
|
@@ -3541,6 +3606,17 @@ Emblem.Parser = (function() {
|
|
3541
3606
|
return s0;
|
3542
3607
|
}
|
3543
3608
|
|
3609
|
+
function peg$parsemustacheContent() {
|
3610
|
+
var s0;
|
3611
|
+
|
3612
|
+
s0 = peg$parseeachIndex();
|
3613
|
+
if (s0 === null) {
|
3614
|
+
s0 = peg$parserecursivelyParsedMustacheContent();
|
3615
|
+
}
|
3616
|
+
|
3617
|
+
return s0;
|
3618
|
+
}
|
3619
|
+
|
3544
3620
|
function peg$parserawMustacheEscaped() {
|
3545
3621
|
var s0, s1, s2, s3, s4, s5;
|
3546
3622
|
|
@@ -3549,14 +3625,14 @@ Emblem.Parser = (function() {
|
|
3549
3625
|
if (s1 !== null) {
|
3550
3626
|
s2 = peg$parse_();
|
3551
3627
|
if (s2 !== null) {
|
3552
|
-
s3 = peg$
|
3628
|
+
s3 = peg$parsemustacheContent();
|
3553
3629
|
if (s3 !== null) {
|
3554
3630
|
s4 = peg$parse_();
|
3555
3631
|
if (s4 !== null) {
|
3556
3632
|
s5 = peg$parsedoubleClose();
|
3557
3633
|
if (s5 !== null) {
|
3558
3634
|
peg$reportedPos = s0;
|
3559
|
-
s1 = peg$
|
3635
|
+
s1 = peg$c109(s3);
|
3560
3636
|
if (s1 === null) {
|
3561
3637
|
peg$currPos = s0;
|
3562
3638
|
s0 = s1;
|
@@ -3589,14 +3665,14 @@ Emblem.Parser = (function() {
|
|
3589
3665
|
if (s1 !== null) {
|
3590
3666
|
s2 = peg$parse_();
|
3591
3667
|
if (s2 !== null) {
|
3592
|
-
s3 = peg$
|
3668
|
+
s3 = peg$parsemustacheContent();
|
3593
3669
|
if (s3 !== null) {
|
3594
3670
|
s4 = peg$parse_();
|
3595
3671
|
if (s4 !== null) {
|
3596
3672
|
s5 = peg$parsehashStacheClose();
|
3597
3673
|
if (s5 !== null) {
|
3598
3674
|
peg$reportedPos = s0;
|
3599
|
-
s1 = peg$
|
3675
|
+
s1 = peg$c109(s3);
|
3600
3676
|
if (s1 === null) {
|
3601
3677
|
peg$currPos = s0;
|
3602
3678
|
s0 = s1;
|
@@ -3636,14 +3712,14 @@ Emblem.Parser = (function() {
|
|
3636
3712
|
if (s1 !== null) {
|
3637
3713
|
s2 = peg$parse_();
|
3638
3714
|
if (s2 !== null) {
|
3639
|
-
s3 = peg$
|
3715
|
+
s3 = peg$parsemustacheContent();
|
3640
3716
|
if (s3 !== null) {
|
3641
3717
|
s4 = peg$parse_();
|
3642
3718
|
if (s4 !== null) {
|
3643
3719
|
s5 = peg$parsetripleClose();
|
3644
3720
|
if (s5 !== null) {
|
3645
3721
|
peg$reportedPos = s0;
|
3646
|
-
s1 = peg$
|
3722
|
+
s1 = peg$c110(s3);
|
3647
3723
|
if (s1 === null) {
|
3648
3724
|
peg$currPos = s0;
|
3649
3725
|
s0 = s1;
|
@@ -3695,7 +3771,7 @@ Emblem.Parser = (function() {
|
|
3695
3771
|
s1 = s2;
|
3696
3772
|
if (s1 !== null) {
|
3697
3773
|
peg$reportedPos = s0;
|
3698
|
-
s1 = peg$
|
3774
|
+
s1 = peg$c111(s1);
|
3699
3775
|
}
|
3700
3776
|
if (s1 === null) {
|
3701
3777
|
peg$currPos = s0;
|
@@ -3728,7 +3804,7 @@ Emblem.Parser = (function() {
|
|
3728
3804
|
s1 = s2;
|
3729
3805
|
if (s1 !== null) {
|
3730
3806
|
peg$reportedPos = s0;
|
3731
|
-
s1 = peg$
|
3807
|
+
s1 = peg$c111(s1);
|
3732
3808
|
}
|
3733
3809
|
if (s1 === null) {
|
3734
3810
|
peg$currPos = s0;
|
@@ -3769,7 +3845,7 @@ Emblem.Parser = (function() {
|
|
3769
3845
|
peg$currPos++;
|
3770
3846
|
} else {
|
3771
3847
|
s2 = null;
|
3772
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
3848
|
+
if (peg$silentFails === 0) { peg$fail(peg$c112); }
|
3773
3849
|
}
|
3774
3850
|
if (s2 !== null) {
|
3775
3851
|
peg$reportedPos = s0;
|
@@ -3821,7 +3897,7 @@ Emblem.Parser = (function() {
|
|
3821
3897
|
peg$currPos++;
|
3822
3898
|
} else {
|
3823
3899
|
s2 = null;
|
3824
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
3900
|
+
if (peg$silentFails === 0) { peg$fail(peg$c112); }
|
3825
3901
|
}
|
3826
3902
|
if (s2 !== null) {
|
3827
3903
|
peg$reportedPos = s0;
|
@@ -3865,7 +3941,7 @@ Emblem.Parser = (function() {
|
|
3865
3941
|
s1 = s2;
|
3866
3942
|
if (s1 !== null) {
|
3867
3943
|
peg$reportedPos = s0;
|
3868
|
-
s1 = peg$
|
3944
|
+
s1 = peg$c111(s1);
|
3869
3945
|
}
|
3870
3946
|
if (s1 === null) {
|
3871
3947
|
peg$currPos = s0;
|
@@ -3897,7 +3973,7 @@ Emblem.Parser = (function() {
|
|
3897
3973
|
peg$currPos++;
|
3898
3974
|
} else {
|
3899
3975
|
s2 = null;
|
3900
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
3976
|
+
if (peg$silentFails === 0) { peg$fail(peg$c112); }
|
3901
3977
|
}
|
3902
3978
|
if (s2 !== null) {
|
3903
3979
|
peg$reportedPos = s0;
|
@@ -3948,14 +4024,14 @@ Emblem.Parser = (function() {
|
|
3948
4024
|
if (s1 !== null) {
|
3949
4025
|
s2 = peg$parse_();
|
3950
4026
|
if (s2 !== null) {
|
3951
|
-
s3 = peg$
|
4027
|
+
s3 = peg$parsemustacheContent();
|
3952
4028
|
if (s3 !== null) {
|
3953
4029
|
s4 = peg$parse_();
|
3954
4030
|
if (s4 !== null) {
|
3955
4031
|
s5 = peg$parsesingleClose();
|
3956
4032
|
if (s5 !== null) {
|
3957
4033
|
peg$reportedPos = s0;
|
3958
|
-
s1 = peg$
|
4034
|
+
s1 = peg$c109(s3);
|
3959
4035
|
if (s1 === null) {
|
3960
4036
|
peg$currPos = s0;
|
3961
4037
|
s0 = s1;
|
@@ -4014,7 +4090,7 @@ Emblem.Parser = (function() {
|
|
4014
4090
|
peg$silentFails--;
|
4015
4091
|
if (s0 === null) {
|
4016
4092
|
s1 = null;
|
4017
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4093
|
+
if (peg$silentFails === 0) { peg$fail(peg$c113); }
|
4018
4094
|
}
|
4019
4095
|
|
4020
4096
|
return s0;
|
@@ -4024,17 +4100,17 @@ Emblem.Parser = (function() {
|
|
4024
4100
|
var s0, s1;
|
4025
4101
|
|
4026
4102
|
peg$silentFails++;
|
4027
|
-
if (input.substr(peg$currPos, 2) === peg$
|
4028
|
-
s0 = peg$
|
4103
|
+
if (input.substr(peg$currPos, 2) === peg$c115) {
|
4104
|
+
s0 = peg$c115;
|
4029
4105
|
peg$currPos += 2;
|
4030
4106
|
} else {
|
4031
4107
|
s0 = null;
|
4032
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4108
|
+
if (peg$silentFails === 0) { peg$fail(peg$c116); }
|
4033
4109
|
}
|
4034
4110
|
peg$silentFails--;
|
4035
4111
|
if (s0 === null) {
|
4036
4112
|
s1 = null;
|
4037
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4113
|
+
if (peg$silentFails === 0) { peg$fail(peg$c114); }
|
4038
4114
|
}
|
4039
4115
|
|
4040
4116
|
return s0;
|
@@ -4044,17 +4120,17 @@ Emblem.Parser = (function() {
|
|
4044
4120
|
var s0, s1;
|
4045
4121
|
|
4046
4122
|
peg$silentFails++;
|
4047
|
-
if (input.substr(peg$currPos, 3) === peg$
|
4048
|
-
s0 = peg$
|
4123
|
+
if (input.substr(peg$currPos, 3) === peg$c118) {
|
4124
|
+
s0 = peg$c118;
|
4049
4125
|
peg$currPos += 3;
|
4050
4126
|
} else {
|
4051
4127
|
s0 = null;
|
4052
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4128
|
+
if (peg$silentFails === 0) { peg$fail(peg$c119); }
|
4053
4129
|
}
|
4054
4130
|
peg$silentFails--;
|
4055
4131
|
if (s0 === null) {
|
4056
4132
|
s1 = null;
|
4057
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4133
|
+
if (peg$silentFails === 0) { peg$fail(peg$c117); }
|
4058
4134
|
}
|
4059
4135
|
|
4060
4136
|
return s0;
|
@@ -4065,16 +4141,16 @@ Emblem.Parser = (function() {
|
|
4065
4141
|
|
4066
4142
|
peg$silentFails++;
|
4067
4143
|
if (input.charCodeAt(peg$currPos) === 125) {
|
4068
|
-
s0 = peg$
|
4144
|
+
s0 = peg$c121;
|
4069
4145
|
peg$currPos++;
|
4070
4146
|
} else {
|
4071
4147
|
s0 = null;
|
4072
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4148
|
+
if (peg$silentFails === 0) { peg$fail(peg$c122); }
|
4073
4149
|
}
|
4074
4150
|
peg$silentFails--;
|
4075
4151
|
if (s0 === null) {
|
4076
4152
|
s1 = null;
|
4077
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4153
|
+
if (peg$silentFails === 0) { peg$fail(peg$c120); }
|
4078
4154
|
}
|
4079
4155
|
|
4080
4156
|
return s0;
|
@@ -4084,17 +4160,17 @@ Emblem.Parser = (function() {
|
|
4084
4160
|
var s0, s1;
|
4085
4161
|
|
4086
4162
|
peg$silentFails++;
|
4087
|
-
if (input.substr(peg$currPos, 2) === peg$
|
4088
|
-
s0 = peg$
|
4163
|
+
if (input.substr(peg$currPos, 2) === peg$c124) {
|
4164
|
+
s0 = peg$c124;
|
4089
4165
|
peg$currPos += 2;
|
4090
4166
|
} else {
|
4091
4167
|
s0 = null;
|
4092
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4168
|
+
if (peg$silentFails === 0) { peg$fail(peg$c125); }
|
4093
4169
|
}
|
4094
4170
|
peg$silentFails--;
|
4095
4171
|
if (s0 === null) {
|
4096
4172
|
s1 = null;
|
4097
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4173
|
+
if (peg$silentFails === 0) { peg$fail(peg$c123); }
|
4098
4174
|
}
|
4099
4175
|
|
4100
4176
|
return s0;
|
@@ -4104,17 +4180,17 @@ Emblem.Parser = (function() {
|
|
4104
4180
|
var s0, s1;
|
4105
4181
|
|
4106
4182
|
peg$silentFails++;
|
4107
|
-
if (input.substr(peg$currPos, 3) === peg$
|
4108
|
-
s0 = peg$
|
4183
|
+
if (input.substr(peg$currPos, 3) === peg$c127) {
|
4184
|
+
s0 = peg$c127;
|
4109
4185
|
peg$currPos += 3;
|
4110
4186
|
} else {
|
4111
4187
|
s0 = null;
|
4112
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4188
|
+
if (peg$silentFails === 0) { peg$fail(peg$c128); }
|
4113
4189
|
}
|
4114
4190
|
peg$silentFails--;
|
4115
4191
|
if (s0 === null) {
|
4116
4192
|
s1 = null;
|
4117
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4193
|
+
if (peg$silentFails === 0) { peg$fail(peg$c126); }
|
4118
4194
|
}
|
4119
4195
|
|
4120
4196
|
return s0;
|
@@ -4125,16 +4201,16 @@ Emblem.Parser = (function() {
|
|
4125
4201
|
|
4126
4202
|
peg$silentFails++;
|
4127
4203
|
if (input.charCodeAt(peg$currPos) === 40) {
|
4128
|
-
s0 = peg$
|
4204
|
+
s0 = peg$c130;
|
4129
4205
|
peg$currPos++;
|
4130
4206
|
} else {
|
4131
4207
|
s0 = null;
|
4132
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4208
|
+
if (peg$silentFails === 0) { peg$fail(peg$c131); }
|
4133
4209
|
}
|
4134
4210
|
peg$silentFails--;
|
4135
4211
|
if (s0 === null) {
|
4136
4212
|
s1 = null;
|
4137
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4213
|
+
if (peg$silentFails === 0) { peg$fail(peg$c129); }
|
4138
4214
|
}
|
4139
4215
|
|
4140
4216
|
return s0;
|
@@ -4145,16 +4221,16 @@ Emblem.Parser = (function() {
|
|
4145
4221
|
|
4146
4222
|
peg$silentFails++;
|
4147
4223
|
if (input.charCodeAt(peg$currPos) === 41) {
|
4148
|
-
s0 = peg$
|
4224
|
+
s0 = peg$c133;
|
4149
4225
|
peg$currPos++;
|
4150
4226
|
} else {
|
4151
4227
|
s0 = null;
|
4152
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4228
|
+
if (peg$silentFails === 0) { peg$fail(peg$c134); }
|
4153
4229
|
}
|
4154
4230
|
peg$silentFails--;
|
4155
4231
|
if (s0 === null) {
|
4156
4232
|
s1 = null;
|
4157
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4233
|
+
if (peg$silentFails === 0) { peg$fail(peg$c132); }
|
4158
4234
|
}
|
4159
4235
|
|
4160
4236
|
return s0;
|
@@ -4164,17 +4240,17 @@ Emblem.Parser = (function() {
|
|
4164
4240
|
var s0, s1;
|
4165
4241
|
|
4166
4242
|
peg$silentFails++;
|
4167
|
-
if (input.substr(peg$currPos, 2) === peg$
|
4168
|
-
s0 = peg$
|
4243
|
+
if (input.substr(peg$currPos, 2) === peg$c136) {
|
4244
|
+
s0 = peg$c136;
|
4169
4245
|
peg$currPos += 2;
|
4170
4246
|
} else {
|
4171
4247
|
s0 = null;
|
4172
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4248
|
+
if (peg$silentFails === 0) { peg$fail(peg$c137); }
|
4173
4249
|
}
|
4174
4250
|
peg$silentFails--;
|
4175
4251
|
if (s0 === null) {
|
4176
4252
|
s1 = null;
|
4177
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4253
|
+
if (peg$silentFails === 0) { peg$fail(peg$c135); }
|
4178
4254
|
}
|
4179
4255
|
|
4180
4256
|
return s0;
|
@@ -4185,16 +4261,16 @@ Emblem.Parser = (function() {
|
|
4185
4261
|
|
4186
4262
|
peg$silentFails++;
|
4187
4263
|
if (input.charCodeAt(peg$currPos) === 125) {
|
4188
|
-
s0 = peg$
|
4264
|
+
s0 = peg$c121;
|
4189
4265
|
peg$currPos++;
|
4190
4266
|
} else {
|
4191
4267
|
s0 = null;
|
4192
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4268
|
+
if (peg$silentFails === 0) { peg$fail(peg$c122); }
|
4193
4269
|
}
|
4194
4270
|
peg$silentFails--;
|
4195
4271
|
if (s0 === null) {
|
4196
4272
|
s1 = null;
|
4197
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4273
|
+
if (peg$silentFails === 0) { peg$fail(peg$c138); }
|
4198
4274
|
}
|
4199
4275
|
|
4200
4276
|
return s0;
|
@@ -4204,12 +4280,12 @@ Emblem.Parser = (function() {
|
|
4204
4280
|
var s0, s1, s2;
|
4205
4281
|
|
4206
4282
|
s0 = peg$currPos;
|
4207
|
-
if (input.substr(peg$currPos, 2) === peg$
|
4208
|
-
s1 = peg$
|
4283
|
+
if (input.substr(peg$currPos, 2) === peg$c139) {
|
4284
|
+
s1 = peg$c139;
|
4209
4285
|
peg$currPos += 2;
|
4210
4286
|
} else {
|
4211
4287
|
s1 = null;
|
4212
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4288
|
+
if (peg$silentFails === 0) { peg$fail(peg$c140); }
|
4213
4289
|
}
|
4214
4290
|
if (s1 !== null) {
|
4215
4291
|
if (input.charCodeAt(peg$currPos) === 32) {
|
@@ -4224,7 +4300,7 @@ Emblem.Parser = (function() {
|
|
4224
4300
|
}
|
4225
4301
|
if (s2 !== null) {
|
4226
4302
|
peg$reportedPos = s0;
|
4227
|
-
s1 = peg$
|
4303
|
+
s1 = peg$c141();
|
4228
4304
|
if (s1 === null) {
|
4229
4305
|
peg$currPos = s0;
|
4230
4306
|
s0 = s1;
|
@@ -4261,7 +4337,7 @@ Emblem.Parser = (function() {
|
|
4261
4337
|
}
|
4262
4338
|
if (s2 !== null) {
|
4263
4339
|
peg$reportedPos = s0;
|
4264
|
-
s1 = peg$
|
4340
|
+
s1 = peg$c142();
|
4265
4341
|
if (s1 === null) {
|
4266
4342
|
peg$currPos = s0;
|
4267
4343
|
s0 = s1;
|
@@ -4307,7 +4383,7 @@ Emblem.Parser = (function() {
|
|
4307
4383
|
}
|
4308
4384
|
if (s3 !== null) {
|
4309
4385
|
peg$reportedPos = peg$currPos;
|
4310
|
-
s4 = peg$
|
4386
|
+
s4 = peg$c143(s1, s2);
|
4311
4387
|
if (s4) {
|
4312
4388
|
s4 = peg$c1;
|
4313
4389
|
} else {
|
@@ -4357,7 +4433,7 @@ Emblem.Parser = (function() {
|
|
4357
4433
|
}
|
4358
4434
|
if (s3 !== null) {
|
4359
4435
|
peg$reportedPos = s0;
|
4360
|
-
s1 = peg$
|
4436
|
+
s1 = peg$c144(s1, s2, s3);
|
4361
4437
|
if (s1 === null) {
|
4362
4438
|
peg$currPos = s0;
|
4363
4439
|
s0 = s1;
|
@@ -4389,7 +4465,7 @@ Emblem.Parser = (function() {
|
|
4389
4465
|
s3 = peg$parseidShorthand();
|
4390
4466
|
if (s3 !== null) {
|
4391
4467
|
peg$reportedPos = s2;
|
4392
|
-
s3 = peg$
|
4468
|
+
s3 = peg$c145(s3);
|
4393
4469
|
}
|
4394
4470
|
if (s3 === null) {
|
4395
4471
|
peg$currPos = s2;
|
@@ -4402,7 +4478,7 @@ Emblem.Parser = (function() {
|
|
4402
4478
|
s3 = peg$parseclassShorthand();
|
4403
4479
|
if (s3 !== null) {
|
4404
4480
|
peg$reportedPos = s2;
|
4405
|
-
s3 = peg$
|
4481
|
+
s3 = peg$c146(s3);
|
4406
4482
|
}
|
4407
4483
|
if (s3 === null) {
|
4408
4484
|
peg$currPos = s2;
|
@@ -4418,7 +4494,7 @@ Emblem.Parser = (function() {
|
|
4418
4494
|
s3 = peg$parseidShorthand();
|
4419
4495
|
if (s3 !== null) {
|
4420
4496
|
peg$reportedPos = s2;
|
4421
|
-
s3 = peg$
|
4497
|
+
s3 = peg$c145(s3);
|
4422
4498
|
}
|
4423
4499
|
if (s3 === null) {
|
4424
4500
|
peg$currPos = s2;
|
@@ -4431,7 +4507,7 @@ Emblem.Parser = (function() {
|
|
4431
4507
|
s3 = peg$parseclassShorthand();
|
4432
4508
|
if (s3 !== null) {
|
4433
4509
|
peg$reportedPos = s2;
|
4434
|
-
s3 = peg$
|
4510
|
+
s3 = peg$c146(s3);
|
4435
4511
|
}
|
4436
4512
|
if (s3 === null) {
|
4437
4513
|
peg$currPos = s2;
|
@@ -4446,7 +4522,7 @@ Emblem.Parser = (function() {
|
|
4446
4522
|
}
|
4447
4523
|
if (s1 !== null) {
|
4448
4524
|
peg$reportedPos = s0;
|
4449
|
-
s1 = peg$
|
4525
|
+
s1 = peg$c147(s1);
|
4450
4526
|
}
|
4451
4527
|
if (s1 === null) {
|
4452
4528
|
peg$currPos = s0;
|
@@ -4500,7 +4576,7 @@ Emblem.Parser = (function() {
|
|
4500
4576
|
}
|
4501
4577
|
if (s2 !== null) {
|
4502
4578
|
peg$reportedPos = s0;
|
4503
|
-
s1 = peg$
|
4579
|
+
s1 = peg$c148(s2);
|
4504
4580
|
if (s1 === null) {
|
4505
4581
|
peg$currPos = s0;
|
4506
4582
|
s0 = s1;
|
@@ -4522,12 +4598,12 @@ Emblem.Parser = (function() {
|
|
4522
4598
|
function peg$parseboundAttributeValueChar() {
|
4523
4599
|
var s0;
|
4524
4600
|
|
4525
|
-
if (peg$
|
4601
|
+
if (peg$c149.test(input.charAt(peg$currPos))) {
|
4526
4602
|
s0 = input.charAt(peg$currPos);
|
4527
4603
|
peg$currPos++;
|
4528
4604
|
} else {
|
4529
4605
|
s0 = null;
|
4530
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4606
|
+
if (peg$silentFails === 0) { peg$fail(peg$c150); }
|
4531
4607
|
}
|
4532
4608
|
if (s0 === null) {
|
4533
4609
|
s0 = peg$parsenonSeparatorColon();
|
@@ -4545,7 +4621,7 @@ Emblem.Parser = (function() {
|
|
4545
4621
|
s1 = peg$parsepathIdNode();
|
4546
4622
|
if (s1 !== null) {
|
4547
4623
|
peg$reportedPos = s0;
|
4548
|
-
s1 = peg$
|
4624
|
+
s1 = peg$c151(s1);
|
4549
4625
|
}
|
4550
4626
|
if (s1 === null) {
|
4551
4627
|
peg$currPos = s0;
|
@@ -4661,7 +4737,7 @@ Emblem.Parser = (function() {
|
|
4661
4737
|
s3 = peg$parseactionValue();
|
4662
4738
|
if (s3 !== null) {
|
4663
4739
|
peg$reportedPos = s0;
|
4664
|
-
s1 = peg$
|
4740
|
+
s1 = peg$c152(s1, s3);
|
4665
4741
|
if (s1 === null) {
|
4666
4742
|
peg$currPos = s0;
|
4667
4743
|
s0 = s1;
|
@@ -4716,7 +4792,7 @@ Emblem.Parser = (function() {
|
|
4716
4792
|
}
|
4717
4793
|
if (s3 !== null) {
|
4718
4794
|
peg$reportedPos = s0;
|
4719
|
-
s1 = peg$
|
4795
|
+
s1 = peg$c153(s1, s3);
|
4720
4796
|
if (s1 === null) {
|
4721
4797
|
peg$currPos = s0;
|
4722
4798
|
s0 = s1;
|
@@ -4790,15 +4866,15 @@ Emblem.Parser = (function() {
|
|
4790
4866
|
s4 = peg$parse_();
|
4791
4867
|
if (s4 !== null) {
|
4792
4868
|
if (input.charCodeAt(peg$currPos) === 125) {
|
4793
|
-
s5 = peg$
|
4869
|
+
s5 = peg$c121;
|
4794
4870
|
peg$currPos++;
|
4795
4871
|
} else {
|
4796
4872
|
s5 = null;
|
4797
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4873
|
+
if (peg$silentFails === 0) { peg$fail(peg$c122); }
|
4798
4874
|
}
|
4799
4875
|
if (s5 !== null) {
|
4800
4876
|
peg$reportedPos = s0;
|
4801
|
-
s1 = peg$
|
4877
|
+
s1 = peg$c154(s3);
|
4802
4878
|
if (s1 === null) {
|
4803
4879
|
peg$currPos = s0;
|
4804
4880
|
s0 = s1;
|
@@ -4865,11 +4941,11 @@ Emblem.Parser = (function() {
|
|
4865
4941
|
s4 = peg$currPos;
|
4866
4942
|
peg$silentFails++;
|
4867
4943
|
if (input.charCodeAt(peg$currPos) === 33) {
|
4868
|
-
s5 = peg$
|
4944
|
+
s5 = peg$c155;
|
4869
4945
|
peg$currPos++;
|
4870
4946
|
} else {
|
4871
4947
|
s5 = null;
|
4872
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4948
|
+
if (peg$silentFails === 0) { peg$fail(peg$c156); }
|
4873
4949
|
}
|
4874
4950
|
peg$silentFails--;
|
4875
4951
|
if (s5 === null) {
|
@@ -4880,7 +4956,7 @@ Emblem.Parser = (function() {
|
|
4880
4956
|
}
|
4881
4957
|
if (s4 !== null) {
|
4882
4958
|
peg$reportedPos = peg$currPos;
|
4883
|
-
s5 = peg$
|
4959
|
+
s5 = peg$c157(s1, s3);
|
4884
4960
|
if (s5) {
|
4885
4961
|
s5 = peg$c1;
|
4886
4962
|
} else {
|
@@ -4888,7 +4964,7 @@ Emblem.Parser = (function() {
|
|
4888
4964
|
}
|
4889
4965
|
if (s5 !== null) {
|
4890
4966
|
peg$reportedPos = s0;
|
4891
|
-
s1 = peg$
|
4967
|
+
s1 = peg$c158(s1, s3);
|
4892
4968
|
if (s1 === null) {
|
4893
4969
|
peg$currPos = s0;
|
4894
4970
|
s0 = s1;
|
@@ -4936,7 +5012,7 @@ Emblem.Parser = (function() {
|
|
4936
5012
|
s3 = peg$parsepathIdNode();
|
4937
5013
|
if (s3 !== null) {
|
4938
5014
|
peg$reportedPos = s0;
|
4939
|
-
s1 = peg$
|
5015
|
+
s1 = peg$c159(s1, s3);
|
4940
5016
|
if (s1 === null) {
|
4941
5017
|
peg$currPos = s0;
|
4942
5018
|
s0 = s1;
|
@@ -4976,7 +5052,7 @@ Emblem.Parser = (function() {
|
|
4976
5052
|
s3 = peg$parseattributeTextNodes();
|
4977
5053
|
if (s3 !== null) {
|
4978
5054
|
peg$reportedPos = s0;
|
4979
|
-
s1 = peg$
|
5055
|
+
s1 = peg$c160(s1, s3);
|
4980
5056
|
if (s1 === null) {
|
4981
5057
|
peg$currPos = s0;
|
4982
5058
|
s0 = s1;
|
@@ -5031,11 +5107,11 @@ Emblem.Parser = (function() {
|
|
5031
5107
|
}
|
5032
5108
|
if (s0 === null) {
|
5033
5109
|
if (input.charCodeAt(peg$currPos) === 95) {
|
5034
|
-
s0 = peg$
|
5110
|
+
s0 = peg$c161;
|
5035
5111
|
peg$currPos++;
|
5036
5112
|
} else {
|
5037
5113
|
s0 = null;
|
5038
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5114
|
+
if (peg$silentFails === 0) { peg$fail(peg$c162); }
|
5039
5115
|
}
|
5040
5116
|
if (s0 === null) {
|
5041
5117
|
if (input.charCodeAt(peg$currPos) === 45) {
|
@@ -5057,11 +5133,11 @@ Emblem.Parser = (function() {
|
|
5057
5133
|
|
5058
5134
|
s0 = peg$currPos;
|
5059
5135
|
if (input.charCodeAt(peg$currPos) === 37) {
|
5060
|
-
s1 = peg$
|
5136
|
+
s1 = peg$c163;
|
5061
5137
|
peg$currPos++;
|
5062
5138
|
} else {
|
5063
5139
|
s1 = null;
|
5064
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5140
|
+
if (peg$silentFails === 0) { peg$fail(peg$c164); }
|
5065
5141
|
}
|
5066
5142
|
if (s1 !== null) {
|
5067
5143
|
s2 = peg$parsecssIdentifier();
|
@@ -5091,17 +5167,17 @@ Emblem.Parser = (function() {
|
|
5091
5167
|
|
5092
5168
|
s0 = peg$currPos;
|
5093
5169
|
if (input.charCodeAt(peg$currPos) === 35) {
|
5094
|
-
s1 = peg$
|
5170
|
+
s1 = peg$c165;
|
5095
5171
|
peg$currPos++;
|
5096
5172
|
} else {
|
5097
5173
|
s1 = null;
|
5098
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5174
|
+
if (peg$silentFails === 0) { peg$fail(peg$c166); }
|
5099
5175
|
}
|
5100
5176
|
if (s1 !== null) {
|
5101
5177
|
s2 = peg$parsecssIdentifier();
|
5102
5178
|
if (s2 !== null) {
|
5103
5179
|
peg$reportedPos = s0;
|
5104
|
-
s1 = peg$
|
5180
|
+
s1 = peg$c167(s2);
|
5105
5181
|
if (s1 === null) {
|
5106
5182
|
peg$currPos = s0;
|
5107
5183
|
s0 = s1;
|
@@ -5162,7 +5238,7 @@ Emblem.Parser = (function() {
|
|
5162
5238
|
peg$silentFails--;
|
5163
5239
|
if (s0 === null) {
|
5164
5240
|
s1 = null;
|
5165
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5241
|
+
if (peg$silentFails === 0) { peg$fail(peg$c168); }
|
5166
5242
|
}
|
5167
5243
|
|
5168
5244
|
return s0;
|
@@ -5189,12 +5265,12 @@ Emblem.Parser = (function() {
|
|
5189
5265
|
function peg$parsenmchar() {
|
5190
5266
|
var s0;
|
5191
5267
|
|
5192
|
-
if (peg$
|
5268
|
+
if (peg$c169.test(input.charAt(peg$currPos))) {
|
5193
5269
|
s0 = input.charAt(peg$currPos);
|
5194
5270
|
peg$currPos++;
|
5195
5271
|
} else {
|
5196
5272
|
s0 = null;
|
5197
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5273
|
+
if (peg$silentFails === 0) { peg$fail(peg$c170); }
|
5198
5274
|
}
|
5199
5275
|
if (s0 === null) {
|
5200
5276
|
s0 = peg$parsenonascii();
|
@@ -5206,12 +5282,12 @@ Emblem.Parser = (function() {
|
|
5206
5282
|
function peg$parsenmstart() {
|
5207
5283
|
var s0;
|
5208
5284
|
|
5209
|
-
if (peg$
|
5285
|
+
if (peg$c171.test(input.charAt(peg$currPos))) {
|
5210
5286
|
s0 = input.charAt(peg$currPos);
|
5211
5287
|
peg$currPos++;
|
5212
5288
|
} else {
|
5213
5289
|
s0 = null;
|
5214
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5290
|
+
if (peg$silentFails === 0) { peg$fail(peg$c172); }
|
5215
5291
|
}
|
5216
5292
|
if (s0 === null) {
|
5217
5293
|
s0 = peg$parsenonascii();
|
@@ -5223,12 +5299,12 @@ Emblem.Parser = (function() {
|
|
5223
5299
|
function peg$parsenonascii() {
|
5224
5300
|
var s0;
|
5225
5301
|
|
5226
|
-
if (peg$
|
5302
|
+
if (peg$c173.test(input.charAt(peg$currPos))) {
|
5227
5303
|
s0 = input.charAt(peg$currPos);
|
5228
5304
|
peg$currPos++;
|
5229
5305
|
} else {
|
5230
5306
|
s0 = null;
|
5231
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5307
|
+
if (peg$silentFails === 0) { peg$fail(peg$c174); }
|
5232
5308
|
}
|
5233
5309
|
|
5234
5310
|
return s0;
|
@@ -5262,11 +5338,11 @@ Emblem.Parser = (function() {
|
|
5262
5338
|
peg$silentFails++;
|
5263
5339
|
s0 = peg$currPos;
|
5264
5340
|
if (input.charCodeAt(peg$currPos) === 37) {
|
5265
|
-
s1 = peg$
|
5341
|
+
s1 = peg$c163;
|
5266
5342
|
peg$currPos++;
|
5267
5343
|
} else {
|
5268
5344
|
s1 = null;
|
5269
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5345
|
+
if (peg$silentFails === 0) { peg$fail(peg$c164); }
|
5270
5346
|
}
|
5271
5347
|
if (s1 !== null) {
|
5272
5348
|
s2 = peg$parse_();
|
@@ -5299,7 +5375,7 @@ Emblem.Parser = (function() {
|
|
5299
5375
|
peg$silentFails--;
|
5300
5376
|
if (s0 === null) {
|
5301
5377
|
s1 = null;
|
5302
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5378
|
+
if (peg$silentFails === 0) { peg$fail(peg$c175); }
|
5303
5379
|
}
|
5304
5380
|
|
5305
5381
|
return s0;
|
@@ -5312,7 +5388,7 @@ Emblem.Parser = (function() {
|
|
5312
5388
|
s1 = peg$parsetagString();
|
5313
5389
|
if (s1 !== null) {
|
5314
5390
|
peg$reportedPos = peg$currPos;
|
5315
|
-
s2 = peg$
|
5391
|
+
s2 = peg$c176(s1);
|
5316
5392
|
if (s2) {
|
5317
5393
|
s2 = peg$c1;
|
5318
5394
|
} else {
|
@@ -5320,7 +5396,7 @@ Emblem.Parser = (function() {
|
|
5320
5396
|
}
|
5321
5397
|
if (s2 !== null) {
|
5322
5398
|
peg$reportedPos = s0;
|
5323
|
-
s1 = peg$
|
5399
|
+
s1 = peg$c177(s1);
|
5324
5400
|
if (s1 === null) {
|
5325
5401
|
peg$currPos = s0;
|
5326
5402
|
s0 = s1;
|
@@ -5342,12 +5418,12 @@ Emblem.Parser = (function() {
|
|
5342
5418
|
function peg$parsetagChar() {
|
5343
5419
|
var s0;
|
5344
5420
|
|
5345
|
-
if (peg$
|
5421
|
+
if (peg$c169.test(input.charAt(peg$currPos))) {
|
5346
5422
|
s0 = input.charAt(peg$currPos);
|
5347
5423
|
peg$currPos++;
|
5348
5424
|
} else {
|
5349
5425
|
s0 = null;
|
5350
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5426
|
+
if (peg$silentFails === 0) { peg$fail(peg$c170); }
|
5351
5427
|
}
|
5352
5428
|
if (s0 === null) {
|
5353
5429
|
s0 = peg$parsenonSeparatorColon();
|
@@ -5413,7 +5489,7 @@ Emblem.Parser = (function() {
|
|
5413
5489
|
s1 = peg$parsetagString();
|
5414
5490
|
if (s1 !== null) {
|
5415
5491
|
peg$reportedPos = peg$currPos;
|
5416
|
-
s2 = peg$
|
5492
|
+
s2 = peg$c179(s1);
|
5417
5493
|
if (s2) {
|
5418
5494
|
s2 = peg$c1;
|
5419
5495
|
} else {
|
@@ -5421,7 +5497,7 @@ Emblem.Parser = (function() {
|
|
5421
5497
|
}
|
5422
5498
|
if (s2 !== null) {
|
5423
5499
|
peg$reportedPos = s0;
|
5424
|
-
s1 = peg$
|
5500
|
+
s1 = peg$c177(s1);
|
5425
5501
|
if (s1 === null) {
|
5426
5502
|
peg$currPos = s0;
|
5427
5503
|
s0 = s1;
|
@@ -5439,7 +5515,7 @@ Emblem.Parser = (function() {
|
|
5439
5515
|
peg$silentFails--;
|
5440
5516
|
if (s0 === null) {
|
5441
5517
|
s1 = null;
|
5442
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5518
|
+
if (peg$silentFails === 0) { peg$fail(peg$c178); }
|
5443
5519
|
}
|
5444
5520
|
|
5445
5521
|
return s0;
|
@@ -5479,15 +5555,15 @@ Emblem.Parser = (function() {
|
|
5479
5555
|
peg$silentFails++;
|
5480
5556
|
s0 = peg$currPos;
|
5481
5557
|
if (input.charCodeAt(peg$currPos) === 61423) {
|
5482
|
-
s1 = peg$
|
5558
|
+
s1 = peg$c181;
|
5483
5559
|
peg$currPos++;
|
5484
5560
|
} else {
|
5485
5561
|
s1 = null;
|
5486
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5562
|
+
if (peg$silentFails === 0) { peg$fail(peg$c182); }
|
5487
5563
|
}
|
5488
5564
|
if (s1 !== null) {
|
5489
5565
|
peg$reportedPos = s0;
|
5490
|
-
s1 = peg$
|
5566
|
+
s1 = peg$c183();
|
5491
5567
|
}
|
5492
5568
|
if (s1 === null) {
|
5493
5569
|
peg$currPos = s0;
|
@@ -5498,7 +5574,7 @@ Emblem.Parser = (function() {
|
|
5498
5574
|
peg$silentFails--;
|
5499
5575
|
if (s0 === null) {
|
5500
5576
|
s1 = null;
|
5501
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5577
|
+
if (peg$silentFails === 0) { peg$fail(peg$c180); }
|
5502
5578
|
}
|
5503
5579
|
|
5504
5580
|
return s0;
|
@@ -5510,15 +5586,15 @@ Emblem.Parser = (function() {
|
|
5510
5586
|
peg$silentFails++;
|
5511
5587
|
s0 = peg$currPos;
|
5512
5588
|
if (input.charCodeAt(peg$currPos) === 61438) {
|
5513
|
-
s1 = peg$
|
5589
|
+
s1 = peg$c185;
|
5514
5590
|
peg$currPos++;
|
5515
5591
|
} else {
|
5516
5592
|
s1 = null;
|
5517
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5593
|
+
if (peg$silentFails === 0) { peg$fail(peg$c186); }
|
5518
5594
|
}
|
5519
5595
|
if (s1 !== null) {
|
5520
5596
|
peg$reportedPos = s0;
|
5521
|
-
s1 = peg$
|
5597
|
+
s1 = peg$c183();
|
5522
5598
|
}
|
5523
5599
|
if (s1 === null) {
|
5524
5600
|
peg$currPos = s0;
|
@@ -5529,7 +5605,7 @@ Emblem.Parser = (function() {
|
|
5529
5605
|
peg$silentFails--;
|
5530
5606
|
if (s0 === null) {
|
5531
5607
|
s1 = null;
|
5532
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5608
|
+
if (peg$silentFails === 0) { peg$fail(peg$c184); }
|
5533
5609
|
}
|
5534
5610
|
|
5535
5611
|
return s0;
|
@@ -5541,15 +5617,15 @@ Emblem.Parser = (function() {
|
|
5541
5617
|
peg$silentFails++;
|
5542
5618
|
s0 = peg$currPos;
|
5543
5619
|
if (input.charCodeAt(peg$currPos) === 61422) {
|
5544
|
-
s1 = peg$
|
5620
|
+
s1 = peg$c188;
|
5545
5621
|
peg$currPos++;
|
5546
5622
|
} else {
|
5547
5623
|
s1 = null;
|
5548
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5624
|
+
if (peg$silentFails === 0) { peg$fail(peg$c189); }
|
5549
5625
|
}
|
5550
5626
|
if (s1 !== null) {
|
5551
5627
|
peg$reportedPos = s0;
|
5552
|
-
s1 = peg$
|
5628
|
+
s1 = peg$c183();
|
5553
5629
|
}
|
5554
5630
|
if (s1 === null) {
|
5555
5631
|
peg$currPos = s0;
|
@@ -5560,7 +5636,7 @@ Emblem.Parser = (function() {
|
|
5560
5636
|
peg$silentFails--;
|
5561
5637
|
if (s0 === null) {
|
5562
5638
|
s1 = null;
|
5563
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5639
|
+
if (peg$silentFails === 0) { peg$fail(peg$c187); }
|
5564
5640
|
}
|
5565
5641
|
|
5566
5642
|
return s0;
|
@@ -5572,34 +5648,34 @@ Emblem.Parser = (function() {
|
|
5572
5648
|
peg$silentFails++;
|
5573
5649
|
s0 = peg$currPos;
|
5574
5650
|
if (input.charCodeAt(peg$currPos) === 13) {
|
5575
|
-
s1 = peg$
|
5651
|
+
s1 = peg$c191;
|
5576
5652
|
peg$currPos++;
|
5577
5653
|
} else {
|
5578
5654
|
s1 = null;
|
5579
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5655
|
+
if (peg$silentFails === 0) { peg$fail(peg$c192); }
|
5580
5656
|
}
|
5581
5657
|
if (s1 === null) {
|
5582
5658
|
s1 = peg$c1;
|
5583
5659
|
}
|
5584
5660
|
if (s1 !== null) {
|
5585
5661
|
if (input.charCodeAt(peg$currPos) === 61439) {
|
5586
|
-
s2 = peg$
|
5662
|
+
s2 = peg$c193;
|
5587
5663
|
peg$currPos++;
|
5588
5664
|
} else {
|
5589
5665
|
s2 = null;
|
5590
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5666
|
+
if (peg$silentFails === 0) { peg$fail(peg$c194); }
|
5591
5667
|
}
|
5592
5668
|
if (s2 !== null) {
|
5593
5669
|
if (input.charCodeAt(peg$currPos) === 10) {
|
5594
|
-
s3 = peg$
|
5670
|
+
s3 = peg$c195;
|
5595
5671
|
peg$currPos++;
|
5596
5672
|
} else {
|
5597
5673
|
s3 = null;
|
5598
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5674
|
+
if (peg$silentFails === 0) { peg$fail(peg$c196); }
|
5599
5675
|
}
|
5600
5676
|
if (s3 !== null) {
|
5601
5677
|
peg$reportedPos = s0;
|
5602
|
-
s1 = peg$
|
5678
|
+
s1 = peg$c141();
|
5603
5679
|
if (s1 === null) {
|
5604
5680
|
peg$currPos = s0;
|
5605
5681
|
s0 = s1;
|
@@ -5621,7 +5697,7 @@ Emblem.Parser = (function() {
|
|
5621
5697
|
peg$silentFails--;
|
5622
5698
|
if (s0 === null) {
|
5623
5699
|
s1 = null;
|
5624
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5700
|
+
if (peg$silentFails === 0) { peg$fail(peg$c190); }
|
5625
5701
|
}
|
5626
5702
|
|
5627
5703
|
return s0;
|
@@ -5638,7 +5714,7 @@ Emblem.Parser = (function() {
|
|
5638
5714
|
peg$silentFails--;
|
5639
5715
|
if (s0 === null) {
|
5640
5716
|
s1 = null;
|
5641
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5717
|
+
if (peg$silentFails === 0) { peg$fail(peg$c197); }
|
5642
5718
|
}
|
5643
5719
|
|
5644
5720
|
return s0;
|
@@ -5666,7 +5742,7 @@ Emblem.Parser = (function() {
|
|
5666
5742
|
peg$silentFails--;
|
5667
5743
|
if (s0 === null) {
|
5668
5744
|
s1 = null;
|
5669
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5745
|
+
if (peg$silentFails === 0) { peg$fail(peg$c198); }
|
5670
5746
|
}
|
5671
5747
|
|
5672
5748
|
return s0;
|
@@ -5685,7 +5761,7 @@ Emblem.Parser = (function() {
|
|
5685
5761
|
peg$silentFails--;
|
5686
5762
|
if (s0 === null) {
|
5687
5763
|
s1 = null;
|
5688
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5764
|
+
if (peg$silentFails === 0) { peg$fail(peg$c199); }
|
5689
5765
|
}
|
5690
5766
|
|
5691
5767
|
return s0;
|
@@ -5695,17 +5771,17 @@ Emblem.Parser = (function() {
|
|
5695
5771
|
var s0, s1;
|
5696
5772
|
|
5697
5773
|
peg$silentFails++;
|
5698
|
-
if (peg$
|
5774
|
+
if (peg$c201.test(input.charAt(peg$currPos))) {
|
5699
5775
|
s0 = input.charAt(peg$currPos);
|
5700
5776
|
peg$currPos++;
|
5701
5777
|
} else {
|
5702
5778
|
s0 = null;
|
5703
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5779
|
+
if (peg$silentFails === 0) { peg$fail(peg$c202); }
|
5704
5780
|
}
|
5705
5781
|
peg$silentFails--;
|
5706
5782
|
if (s0 === null) {
|
5707
5783
|
s1 = null;
|
5708
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5784
|
+
if (peg$silentFails === 0) { peg$fail(peg$c200); }
|
5709
5785
|
}
|
5710
5786
|
|
5711
5787
|
return s0;
|
@@ -5737,7 +5813,7 @@ Emblem.Parser = (function() {
|
|
5737
5813
|
peg$currPos++;
|
5738
5814
|
} else {
|
5739
5815
|
s2 = null;
|
5740
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5816
|
+
if (peg$silentFails === 0) { peg$fail(peg$c112); }
|
5741
5817
|
}
|
5742
5818
|
if (s2 !== null) {
|
5743
5819
|
peg$reportedPos = s0;
|