emblem-source 0.3.13 → 0.3.14
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 +240 -306
- 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: 86d053ef4e7fa0649853147b95fa78c2b48125da
|
4
|
+
data.tar.gz: 84be5b0b61d7540091dc0fed4da9492055464e5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 662413661b0e50010cb857446a13d329512a2c63d941a0646518b6e338fc2832586dbae752a93210ffb9661305189f5cfb8f0a03bce09bc82bac6467c96e1471
|
7
|
+
data.tar.gz: fd18a46c4739ffcbb6d9a7f15b1a8c3e56bd73bf9eb94c5c878b6454c1aea2d3a6853226b8e014fcf6dc8d39c343491ce3e642c8c37cb65f2f9cda4e84c81a59
|
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.14";
|
107
107
|
|
108
108
|
module.exports = Emblem;
|
109
109
|
|
@@ -409,8 +409,8 @@ Emblem.Parser = (function() {
|
|
409
409
|
peg$c50 = "\"..\"",
|
410
410
|
peg$c51 = ".",
|
411
411
|
peg$c52 = "\".\"",
|
412
|
-
peg$c53 = /^[a-zA-Z0-9_
|
413
|
-
peg$c54 = "[a-zA-Z0-9_
|
412
|
+
peg$c53 = /^[a-zA-Z0-9_$\-!?\^@]/,
|
413
|
+
peg$c54 = "[a-zA-Z0-9_$\\-!?\\^@]",
|
414
414
|
peg$c55 = function(s) { return s; },
|
415
415
|
peg$c56 = "Key",
|
416
416
|
peg$c57 = ":",
|
@@ -430,6 +430,16 @@ Emblem.Parser = (function() {
|
|
430
430
|
peg$c65 = "[\\/.]",
|
431
431
|
peg$c66 = function(v) {
|
432
432
|
var last = v[v.length - 1];
|
433
|
+
|
434
|
+
// Support for data keywords that are prefixed with @ in the each
|
435
|
+
// block helper such as @index, @key, @first, @last
|
436
|
+
if (last.part.charAt(0) === '@') {
|
437
|
+
last.part = last.part.slice(1);
|
438
|
+
var idNode = new AST.IdNode(v);
|
439
|
+
var dataNode = new AST.DataNode(idNode);
|
440
|
+
return dataNode;
|
441
|
+
}
|
442
|
+
|
433
443
|
var match;
|
434
444
|
var suffixModifier;
|
435
445
|
if(match = last.part.match(/[!\?\^]$/)) {
|
@@ -521,60 +531,50 @@ Emblem.Parser = (function() {
|
|
521
531
|
peg$c100 = function(first, tail) { return textNodesResult(first, tail); },
|
522
532
|
peg$c101 = "{",
|
523
533
|
peg$c102 = "\"{\"",
|
524
|
-
peg$c103 =
|
525
|
-
peg$c104 = "
|
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) {
|
534
|
+
peg$c103 = /^[^}]/,
|
535
|
+
peg$c104 = "[^}]",
|
536
|
+
peg$c105 = function(text) {
|
537
537
|
// Force interpretation as mustache.
|
538
538
|
// TODO: change to just parse with a specific rule?
|
539
539
|
text = "=" + text;
|
540
540
|
return Emblem.parse(text).statements[0];
|
541
541
|
},
|
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$
|
568
|
-
peg$
|
569
|
-
peg$
|
570
|
-
peg$
|
571
|
-
peg$
|
572
|
-
peg$
|
573
|
-
peg$
|
574
|
-
peg$
|
575
|
-
peg$
|
576
|
-
peg$
|
577
|
-
peg$
|
542
|
+
peg$c106 = function(m) { m.escaped = true; return m; },
|
543
|
+
peg$c107 = function(m) { m.escaped = false; return m; },
|
544
|
+
peg$c108 = function(a) { return new AST.ContentNode(a); },
|
545
|
+
peg$c109 = "any character",
|
546
|
+
peg$c110 = "SingleMustacheOpen",
|
547
|
+
peg$c111 = "DoubleMustacheOpen",
|
548
|
+
peg$c112 = "{{",
|
549
|
+
peg$c113 = "\"{{\"",
|
550
|
+
peg$c114 = "TripleMustacheOpen",
|
551
|
+
peg$c115 = "{{{",
|
552
|
+
peg$c116 = "\"{{{\"",
|
553
|
+
peg$c117 = "SingleMustacheClose",
|
554
|
+
peg$c118 = "}",
|
555
|
+
peg$c119 = "\"}\"",
|
556
|
+
peg$c120 = "DoubleMustacheClose",
|
557
|
+
peg$c121 = "}}",
|
558
|
+
peg$c122 = "\"}}\"",
|
559
|
+
peg$c123 = "TripleMustacheClose",
|
560
|
+
peg$c124 = "}}}",
|
561
|
+
peg$c125 = "\"}}}\"",
|
562
|
+
peg$c126 = "SubexpressionOpen",
|
563
|
+
peg$c127 = "(",
|
564
|
+
peg$c128 = "\"(\"",
|
565
|
+
peg$c129 = "SubexpressionClose",
|
566
|
+
peg$c130 = ")",
|
567
|
+
peg$c131 = "\")\"",
|
568
|
+
peg$c132 = "InterpolationOpen",
|
569
|
+
peg$c133 = "#{",
|
570
|
+
peg$c134 = "\"#{\"",
|
571
|
+
peg$c135 = "InterpolationClose",
|
572
|
+
peg$c136 = "==",
|
573
|
+
peg$c137 = "\"==\"",
|
574
|
+
peg$c138 = function() { return false; },
|
575
|
+
peg$c139 = function() { return true; },
|
576
|
+
peg$c140 = function(h, s) { return h || s; },
|
577
|
+
peg$c141 = function(h, inTagMustaches, fullAttributes) {
|
578
578
|
var tagName = h[0] || 'div',
|
579
579
|
shorthandAttributes = h[1] || [],
|
580
580
|
id = shorthandAttributes[0],
|
@@ -667,9 +667,9 @@ Emblem.Parser = (function() {
|
|
667
667
|
return [tagOpenContent, new AST.ContentNode('</' + tagName + '>')];
|
668
668
|
}
|
669
669
|
},
|
670
|
-
peg$
|
671
|
-
peg$
|
672
|
-
peg$
|
670
|
+
peg$c142 = function(s) { return { shorthand: s, id: true}; },
|
671
|
+
peg$c143 = function(s) { return { shorthand: s }; },
|
672
|
+
peg$c144 = function(shorthands) {
|
673
673
|
var id, classes = [];
|
674
674
|
for(var i = 0, len = shorthands.length; i < len; ++i) {
|
675
675
|
var shorthand = shorthands[i];
|
@@ -682,42 +682,42 @@ Emblem.Parser = (function() {
|
|
682
682
|
|
683
683
|
return [id, classes];
|
684
684
|
},
|
685
|
-
peg$
|
685
|
+
peg$c145 = function(a) {
|
686
686
|
if (a.length) {
|
687
687
|
return [new AST.ContentNode(' ')].concat(a);
|
688
688
|
} else {
|
689
689
|
return [];
|
690
690
|
}
|
691
691
|
},
|
692
|
-
peg$
|
693
|
-
peg$
|
694
|
-
peg$
|
695
|
-
peg$
|
692
|
+
peg$c146 = /^[A-Za-z.0-9_\-]/,
|
693
|
+
peg$c147 = "[A-Za-z.0-9_\\-]",
|
694
|
+
peg$c148 = function(id) { return createMustacheNode([id], null, true); },
|
695
|
+
peg$c149 = function(event, mustacheNode) {
|
696
696
|
// Replace the IdNode with a StringNode to prevent unquoted action deprecation warnings
|
697
697
|
mustacheNode.id = new AST.StringNode(mustacheNode.id.string);
|
698
698
|
|
699
699
|
// Unshift the action helper and augment the hash
|
700
700
|
return [unshiftParam(mustacheNode, 'action', [['on', new AST.StringNode(event)]])];
|
701
701
|
},
|
702
|
-
peg$
|
702
|
+
peg$c150 = function(key, boolValue) {
|
703
703
|
if (boolValue === 'true') {
|
704
704
|
return [ new AST.ContentNode(key) ];
|
705
705
|
} else {
|
706
706
|
return [];
|
707
707
|
}
|
708
708
|
},
|
709
|
-
peg$
|
710
|
-
peg$
|
711
|
-
peg$
|
712
|
-
peg$
|
713
|
-
peg$
|
709
|
+
peg$c151 = function(value) { return value.replace(/ *$/, ''); },
|
710
|
+
peg$c152 = "!",
|
711
|
+
peg$c153 = "\"!\"",
|
712
|
+
peg$c154 = function(key, value) { return IS_EMBER; },
|
713
|
+
peg$c155 = function(key, value) {
|
714
714
|
var hashNode = new AST.HashNode([[key, new AST.StringNode(value)]]);
|
715
715
|
var params = [new AST.IdNode([{part: 'bind-attr'}])];
|
716
716
|
var mustacheNode = createMustacheNode(params, hashNode);
|
717
717
|
|
718
718
|
return [mustacheNode];
|
719
719
|
},
|
720
|
-
peg$
|
720
|
+
peg$c156 = function(key, id) {
|
721
721
|
var mustacheNode = createMustacheNode([id], null, true);
|
722
722
|
|
723
723
|
if(IS_EMBER && id._emblemSuffixModifier === '!') {
|
@@ -730,52 +730,52 @@ Emblem.Parser = (function() {
|
|
730
730
|
new AST.ContentNode('"'),
|
731
731
|
];
|
732
732
|
},
|
733
|
-
peg$
|
733
|
+
peg$c157 = function(key, nodes) {
|
734
734
|
var result = [ new AST.ContentNode(key + '=' + '"') ].concat(nodes);
|
735
735
|
return result.concat([new AST.ContentNode('"')]);
|
736
736
|
},
|
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$
|
769
|
-
peg$
|
770
|
-
peg$
|
771
|
-
peg$
|
772
|
-
peg$
|
773
|
-
peg$
|
774
|
-
peg$
|
775
|
-
peg$
|
776
|
-
peg$
|
777
|
-
peg$
|
778
|
-
peg$
|
737
|
+
peg$c158 = "_",
|
738
|
+
peg$c159 = "\"_\"",
|
739
|
+
peg$c160 = "%",
|
740
|
+
peg$c161 = "\"%\"",
|
741
|
+
peg$c162 = "#",
|
742
|
+
peg$c163 = "\"#\"",
|
743
|
+
peg$c164 = function(c) { return c;},
|
744
|
+
peg$c165 = "CSSIdentifier",
|
745
|
+
peg$c166 = /^[_a-zA-Z0-9\-]/,
|
746
|
+
peg$c167 = "[_a-zA-Z0-9\\-]",
|
747
|
+
peg$c168 = /^[_a-zA-Z]/,
|
748
|
+
peg$c169 = "[_a-zA-Z]",
|
749
|
+
peg$c170 = /^[\x80-\xFF]/,
|
750
|
+
peg$c171 = "[\\x80-\\xFF]",
|
751
|
+
peg$c172 = "KnownHTMLTagName",
|
752
|
+
peg$c173 = function(t) { return !!KNOWN_TAGS[t]; },
|
753
|
+
peg$c174 = function(t) { return t; },
|
754
|
+
peg$c175 = "a JS event",
|
755
|
+
peg$c176 = function(t) { return !!KNOWN_EVENTS[t]; },
|
756
|
+
peg$c177 = "INDENT",
|
757
|
+
peg$c178 = "\uEFEF",
|
758
|
+
peg$c179 = "\"\\uEFEF\"",
|
759
|
+
peg$c180 = function() { return ''; },
|
760
|
+
peg$c181 = "DEDENT",
|
761
|
+
peg$c182 = "\uEFFE",
|
762
|
+
peg$c183 = "\"\\uEFFE\"",
|
763
|
+
peg$c184 = "Unmatched DEDENT",
|
764
|
+
peg$c185 = "\uEFEE",
|
765
|
+
peg$c186 = "\"\\uEFEE\"",
|
766
|
+
peg$c187 = "LineEnd",
|
767
|
+
peg$c188 = "\r",
|
768
|
+
peg$c189 = "\"\\r\"",
|
769
|
+
peg$c190 = "\uEFFF",
|
770
|
+
peg$c191 = "\"\\uEFFF\"",
|
771
|
+
peg$c192 = "\n",
|
772
|
+
peg$c193 = "\"\\n\"",
|
773
|
+
peg$c194 = "ANYDEDENT",
|
774
|
+
peg$c195 = "RequiredWhitespace",
|
775
|
+
peg$c196 = "OptionalWhitespace",
|
776
|
+
peg$c197 = "InlineWhitespace",
|
777
|
+
peg$c198 = /^[ \t]/,
|
778
|
+
peg$c199 = "[ \\t]",
|
779
779
|
|
780
780
|
peg$currPos = 0,
|
781
781
|
peg$reportedPos = 0,
|
@@ -3486,61 +3486,6 @@ Emblem.Parser = (function() {
|
|
3486
3486
|
return s0;
|
3487
3487
|
}
|
3488
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
|
-
|
3544
3489
|
function peg$parserecursivelyParsedMustacheContent() {
|
3545
3490
|
var s0, s1, s2, s3, s4;
|
3546
3491
|
|
@@ -3564,21 +3509,21 @@ Emblem.Parser = (function() {
|
|
3564
3509
|
if (s1 !== null) {
|
3565
3510
|
s2 = peg$currPos;
|
3566
3511
|
s3 = [];
|
3567
|
-
if (peg$
|
3512
|
+
if (peg$c103.test(input.charAt(peg$currPos))) {
|
3568
3513
|
s4 = input.charAt(peg$currPos);
|
3569
3514
|
peg$currPos++;
|
3570
3515
|
} else {
|
3571
3516
|
s4 = null;
|
3572
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
3517
|
+
if (peg$silentFails === 0) { peg$fail(peg$c104); }
|
3573
3518
|
}
|
3574
3519
|
while (s4 !== null) {
|
3575
3520
|
s3.push(s4);
|
3576
|
-
if (peg$
|
3521
|
+
if (peg$c103.test(input.charAt(peg$currPos))) {
|
3577
3522
|
s4 = input.charAt(peg$currPos);
|
3578
3523
|
peg$currPos++;
|
3579
3524
|
} else {
|
3580
3525
|
s4 = null;
|
3581
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
3526
|
+
if (peg$silentFails === 0) { peg$fail(peg$c104); }
|
3582
3527
|
}
|
3583
3528
|
}
|
3584
3529
|
if (s3 !== null) {
|
@@ -3587,7 +3532,7 @@ Emblem.Parser = (function() {
|
|
3587
3532
|
s2 = s3;
|
3588
3533
|
if (s2 !== null) {
|
3589
3534
|
peg$reportedPos = s0;
|
3590
|
-
s1 = peg$
|
3535
|
+
s1 = peg$c105(s2);
|
3591
3536
|
if (s1 === null) {
|
3592
3537
|
peg$currPos = s0;
|
3593
3538
|
s0 = s1;
|
@@ -3606,17 +3551,6 @@ Emblem.Parser = (function() {
|
|
3606
3551
|
return s0;
|
3607
3552
|
}
|
3608
3553
|
|
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
|
-
|
3620
3554
|
function peg$parserawMustacheEscaped() {
|
3621
3555
|
var s0, s1, s2, s3, s4, s5;
|
3622
3556
|
|
@@ -3625,14 +3559,14 @@ Emblem.Parser = (function() {
|
|
3625
3559
|
if (s1 !== null) {
|
3626
3560
|
s2 = peg$parse_();
|
3627
3561
|
if (s2 !== null) {
|
3628
|
-
s3 = peg$
|
3562
|
+
s3 = peg$parserecursivelyParsedMustacheContent();
|
3629
3563
|
if (s3 !== null) {
|
3630
3564
|
s4 = peg$parse_();
|
3631
3565
|
if (s4 !== null) {
|
3632
3566
|
s5 = peg$parsedoubleClose();
|
3633
3567
|
if (s5 !== null) {
|
3634
3568
|
peg$reportedPos = s0;
|
3635
|
-
s1 = peg$
|
3569
|
+
s1 = peg$c106(s3);
|
3636
3570
|
if (s1 === null) {
|
3637
3571
|
peg$currPos = s0;
|
3638
3572
|
s0 = s1;
|
@@ -3665,14 +3599,14 @@ Emblem.Parser = (function() {
|
|
3665
3599
|
if (s1 !== null) {
|
3666
3600
|
s2 = peg$parse_();
|
3667
3601
|
if (s2 !== null) {
|
3668
|
-
s3 = peg$
|
3602
|
+
s3 = peg$parserecursivelyParsedMustacheContent();
|
3669
3603
|
if (s3 !== null) {
|
3670
3604
|
s4 = peg$parse_();
|
3671
3605
|
if (s4 !== null) {
|
3672
3606
|
s5 = peg$parsehashStacheClose();
|
3673
3607
|
if (s5 !== null) {
|
3674
3608
|
peg$reportedPos = s0;
|
3675
|
-
s1 = peg$
|
3609
|
+
s1 = peg$c106(s3);
|
3676
3610
|
if (s1 === null) {
|
3677
3611
|
peg$currPos = s0;
|
3678
3612
|
s0 = s1;
|
@@ -3712,14 +3646,14 @@ Emblem.Parser = (function() {
|
|
3712
3646
|
if (s1 !== null) {
|
3713
3647
|
s2 = peg$parse_();
|
3714
3648
|
if (s2 !== null) {
|
3715
|
-
s3 = peg$
|
3649
|
+
s3 = peg$parserecursivelyParsedMustacheContent();
|
3716
3650
|
if (s3 !== null) {
|
3717
3651
|
s4 = peg$parse_();
|
3718
3652
|
if (s4 !== null) {
|
3719
3653
|
s5 = peg$parsetripleClose();
|
3720
3654
|
if (s5 !== null) {
|
3721
3655
|
peg$reportedPos = s0;
|
3722
|
-
s1 = peg$
|
3656
|
+
s1 = peg$c107(s3);
|
3723
3657
|
if (s1 === null) {
|
3724
3658
|
peg$currPos = s0;
|
3725
3659
|
s0 = s1;
|
@@ -3771,7 +3705,7 @@ Emblem.Parser = (function() {
|
|
3771
3705
|
s1 = s2;
|
3772
3706
|
if (s1 !== null) {
|
3773
3707
|
peg$reportedPos = s0;
|
3774
|
-
s1 = peg$
|
3708
|
+
s1 = peg$c108(s1);
|
3775
3709
|
}
|
3776
3710
|
if (s1 === null) {
|
3777
3711
|
peg$currPos = s0;
|
@@ -3804,7 +3738,7 @@ Emblem.Parser = (function() {
|
|
3804
3738
|
s1 = s2;
|
3805
3739
|
if (s1 !== null) {
|
3806
3740
|
peg$reportedPos = s0;
|
3807
|
-
s1 = peg$
|
3741
|
+
s1 = peg$c108(s1);
|
3808
3742
|
}
|
3809
3743
|
if (s1 === null) {
|
3810
3744
|
peg$currPos = s0;
|
@@ -3845,7 +3779,7 @@ Emblem.Parser = (function() {
|
|
3845
3779
|
peg$currPos++;
|
3846
3780
|
} else {
|
3847
3781
|
s2 = null;
|
3848
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
3782
|
+
if (peg$silentFails === 0) { peg$fail(peg$c109); }
|
3849
3783
|
}
|
3850
3784
|
if (s2 !== null) {
|
3851
3785
|
peg$reportedPos = s0;
|
@@ -3897,7 +3831,7 @@ Emblem.Parser = (function() {
|
|
3897
3831
|
peg$currPos++;
|
3898
3832
|
} else {
|
3899
3833
|
s2 = null;
|
3900
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
3834
|
+
if (peg$silentFails === 0) { peg$fail(peg$c109); }
|
3901
3835
|
}
|
3902
3836
|
if (s2 !== null) {
|
3903
3837
|
peg$reportedPos = s0;
|
@@ -3941,7 +3875,7 @@ Emblem.Parser = (function() {
|
|
3941
3875
|
s1 = s2;
|
3942
3876
|
if (s1 !== null) {
|
3943
3877
|
peg$reportedPos = s0;
|
3944
|
-
s1 = peg$
|
3878
|
+
s1 = peg$c108(s1);
|
3945
3879
|
}
|
3946
3880
|
if (s1 === null) {
|
3947
3881
|
peg$currPos = s0;
|
@@ -3973,7 +3907,7 @@ Emblem.Parser = (function() {
|
|
3973
3907
|
peg$currPos++;
|
3974
3908
|
} else {
|
3975
3909
|
s2 = null;
|
3976
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
3910
|
+
if (peg$silentFails === 0) { peg$fail(peg$c109); }
|
3977
3911
|
}
|
3978
3912
|
if (s2 !== null) {
|
3979
3913
|
peg$reportedPos = s0;
|
@@ -4024,14 +3958,14 @@ Emblem.Parser = (function() {
|
|
4024
3958
|
if (s1 !== null) {
|
4025
3959
|
s2 = peg$parse_();
|
4026
3960
|
if (s2 !== null) {
|
4027
|
-
s3 = peg$
|
3961
|
+
s3 = peg$parserecursivelyParsedMustacheContent();
|
4028
3962
|
if (s3 !== null) {
|
4029
3963
|
s4 = peg$parse_();
|
4030
3964
|
if (s4 !== null) {
|
4031
3965
|
s5 = peg$parsesingleClose();
|
4032
3966
|
if (s5 !== null) {
|
4033
3967
|
peg$reportedPos = s0;
|
4034
|
-
s1 = peg$
|
3968
|
+
s1 = peg$c106(s3);
|
4035
3969
|
if (s1 === null) {
|
4036
3970
|
peg$currPos = s0;
|
4037
3971
|
s0 = s1;
|
@@ -4090,7 +4024,7 @@ Emblem.Parser = (function() {
|
|
4090
4024
|
peg$silentFails--;
|
4091
4025
|
if (s0 === null) {
|
4092
4026
|
s1 = null;
|
4093
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4027
|
+
if (peg$silentFails === 0) { peg$fail(peg$c110); }
|
4094
4028
|
}
|
4095
4029
|
|
4096
4030
|
return s0;
|
@@ -4100,17 +4034,17 @@ Emblem.Parser = (function() {
|
|
4100
4034
|
var s0, s1;
|
4101
4035
|
|
4102
4036
|
peg$silentFails++;
|
4103
|
-
if (input.substr(peg$currPos, 2) === peg$
|
4104
|
-
s0 = peg$
|
4037
|
+
if (input.substr(peg$currPos, 2) === peg$c112) {
|
4038
|
+
s0 = peg$c112;
|
4105
4039
|
peg$currPos += 2;
|
4106
4040
|
} else {
|
4107
4041
|
s0 = null;
|
4108
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4042
|
+
if (peg$silentFails === 0) { peg$fail(peg$c113); }
|
4109
4043
|
}
|
4110
4044
|
peg$silentFails--;
|
4111
4045
|
if (s0 === null) {
|
4112
4046
|
s1 = null;
|
4113
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4047
|
+
if (peg$silentFails === 0) { peg$fail(peg$c111); }
|
4114
4048
|
}
|
4115
4049
|
|
4116
4050
|
return s0;
|
@@ -4120,17 +4054,17 @@ Emblem.Parser = (function() {
|
|
4120
4054
|
var s0, s1;
|
4121
4055
|
|
4122
4056
|
peg$silentFails++;
|
4123
|
-
if (input.substr(peg$currPos, 3) === peg$
|
4124
|
-
s0 = peg$
|
4057
|
+
if (input.substr(peg$currPos, 3) === peg$c115) {
|
4058
|
+
s0 = peg$c115;
|
4125
4059
|
peg$currPos += 3;
|
4126
4060
|
} else {
|
4127
4061
|
s0 = null;
|
4128
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4062
|
+
if (peg$silentFails === 0) { peg$fail(peg$c116); }
|
4129
4063
|
}
|
4130
4064
|
peg$silentFails--;
|
4131
4065
|
if (s0 === null) {
|
4132
4066
|
s1 = null;
|
4133
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4067
|
+
if (peg$silentFails === 0) { peg$fail(peg$c114); }
|
4134
4068
|
}
|
4135
4069
|
|
4136
4070
|
return s0;
|
@@ -4141,16 +4075,16 @@ Emblem.Parser = (function() {
|
|
4141
4075
|
|
4142
4076
|
peg$silentFails++;
|
4143
4077
|
if (input.charCodeAt(peg$currPos) === 125) {
|
4144
|
-
s0 = peg$
|
4078
|
+
s0 = peg$c118;
|
4145
4079
|
peg$currPos++;
|
4146
4080
|
} else {
|
4147
4081
|
s0 = null;
|
4148
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4082
|
+
if (peg$silentFails === 0) { peg$fail(peg$c119); }
|
4149
4083
|
}
|
4150
4084
|
peg$silentFails--;
|
4151
4085
|
if (s0 === null) {
|
4152
4086
|
s1 = null;
|
4153
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4087
|
+
if (peg$silentFails === 0) { peg$fail(peg$c117); }
|
4154
4088
|
}
|
4155
4089
|
|
4156
4090
|
return s0;
|
@@ -4160,17 +4094,17 @@ Emblem.Parser = (function() {
|
|
4160
4094
|
var s0, s1;
|
4161
4095
|
|
4162
4096
|
peg$silentFails++;
|
4163
|
-
if (input.substr(peg$currPos, 2) === peg$
|
4164
|
-
s0 = peg$
|
4097
|
+
if (input.substr(peg$currPos, 2) === peg$c121) {
|
4098
|
+
s0 = peg$c121;
|
4165
4099
|
peg$currPos += 2;
|
4166
4100
|
} else {
|
4167
4101
|
s0 = null;
|
4168
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4102
|
+
if (peg$silentFails === 0) { peg$fail(peg$c122); }
|
4169
4103
|
}
|
4170
4104
|
peg$silentFails--;
|
4171
4105
|
if (s0 === null) {
|
4172
4106
|
s1 = null;
|
4173
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4107
|
+
if (peg$silentFails === 0) { peg$fail(peg$c120); }
|
4174
4108
|
}
|
4175
4109
|
|
4176
4110
|
return s0;
|
@@ -4180,17 +4114,17 @@ Emblem.Parser = (function() {
|
|
4180
4114
|
var s0, s1;
|
4181
4115
|
|
4182
4116
|
peg$silentFails++;
|
4183
|
-
if (input.substr(peg$currPos, 3) === peg$
|
4184
|
-
s0 = peg$
|
4117
|
+
if (input.substr(peg$currPos, 3) === peg$c124) {
|
4118
|
+
s0 = peg$c124;
|
4185
4119
|
peg$currPos += 3;
|
4186
4120
|
} else {
|
4187
4121
|
s0 = null;
|
4188
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4122
|
+
if (peg$silentFails === 0) { peg$fail(peg$c125); }
|
4189
4123
|
}
|
4190
4124
|
peg$silentFails--;
|
4191
4125
|
if (s0 === null) {
|
4192
4126
|
s1 = null;
|
4193
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4127
|
+
if (peg$silentFails === 0) { peg$fail(peg$c123); }
|
4194
4128
|
}
|
4195
4129
|
|
4196
4130
|
return s0;
|
@@ -4201,16 +4135,16 @@ Emblem.Parser = (function() {
|
|
4201
4135
|
|
4202
4136
|
peg$silentFails++;
|
4203
4137
|
if (input.charCodeAt(peg$currPos) === 40) {
|
4204
|
-
s0 = peg$
|
4138
|
+
s0 = peg$c127;
|
4205
4139
|
peg$currPos++;
|
4206
4140
|
} else {
|
4207
4141
|
s0 = null;
|
4208
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4142
|
+
if (peg$silentFails === 0) { peg$fail(peg$c128); }
|
4209
4143
|
}
|
4210
4144
|
peg$silentFails--;
|
4211
4145
|
if (s0 === null) {
|
4212
4146
|
s1 = null;
|
4213
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4147
|
+
if (peg$silentFails === 0) { peg$fail(peg$c126); }
|
4214
4148
|
}
|
4215
4149
|
|
4216
4150
|
return s0;
|
@@ -4221,16 +4155,16 @@ Emblem.Parser = (function() {
|
|
4221
4155
|
|
4222
4156
|
peg$silentFails++;
|
4223
4157
|
if (input.charCodeAt(peg$currPos) === 41) {
|
4224
|
-
s0 = peg$
|
4158
|
+
s0 = peg$c130;
|
4225
4159
|
peg$currPos++;
|
4226
4160
|
} else {
|
4227
4161
|
s0 = null;
|
4228
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4162
|
+
if (peg$silentFails === 0) { peg$fail(peg$c131); }
|
4229
4163
|
}
|
4230
4164
|
peg$silentFails--;
|
4231
4165
|
if (s0 === null) {
|
4232
4166
|
s1 = null;
|
4233
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4167
|
+
if (peg$silentFails === 0) { peg$fail(peg$c129); }
|
4234
4168
|
}
|
4235
4169
|
|
4236
4170
|
return s0;
|
@@ -4240,17 +4174,17 @@ Emblem.Parser = (function() {
|
|
4240
4174
|
var s0, s1;
|
4241
4175
|
|
4242
4176
|
peg$silentFails++;
|
4243
|
-
if (input.substr(peg$currPos, 2) === peg$
|
4244
|
-
s0 = peg$
|
4177
|
+
if (input.substr(peg$currPos, 2) === peg$c133) {
|
4178
|
+
s0 = peg$c133;
|
4245
4179
|
peg$currPos += 2;
|
4246
4180
|
} else {
|
4247
4181
|
s0 = null;
|
4248
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4182
|
+
if (peg$silentFails === 0) { peg$fail(peg$c134); }
|
4249
4183
|
}
|
4250
4184
|
peg$silentFails--;
|
4251
4185
|
if (s0 === null) {
|
4252
4186
|
s1 = null;
|
4253
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4187
|
+
if (peg$silentFails === 0) { peg$fail(peg$c132); }
|
4254
4188
|
}
|
4255
4189
|
|
4256
4190
|
return s0;
|
@@ -4261,16 +4195,16 @@ Emblem.Parser = (function() {
|
|
4261
4195
|
|
4262
4196
|
peg$silentFails++;
|
4263
4197
|
if (input.charCodeAt(peg$currPos) === 125) {
|
4264
|
-
s0 = peg$
|
4198
|
+
s0 = peg$c118;
|
4265
4199
|
peg$currPos++;
|
4266
4200
|
} else {
|
4267
4201
|
s0 = null;
|
4268
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4202
|
+
if (peg$silentFails === 0) { peg$fail(peg$c119); }
|
4269
4203
|
}
|
4270
4204
|
peg$silentFails--;
|
4271
4205
|
if (s0 === null) {
|
4272
4206
|
s1 = null;
|
4273
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4207
|
+
if (peg$silentFails === 0) { peg$fail(peg$c135); }
|
4274
4208
|
}
|
4275
4209
|
|
4276
4210
|
return s0;
|
@@ -4280,12 +4214,12 @@ Emblem.Parser = (function() {
|
|
4280
4214
|
var s0, s1, s2;
|
4281
4215
|
|
4282
4216
|
s0 = peg$currPos;
|
4283
|
-
if (input.substr(peg$currPos, 2) === peg$
|
4284
|
-
s1 = peg$
|
4217
|
+
if (input.substr(peg$currPos, 2) === peg$c136) {
|
4218
|
+
s1 = peg$c136;
|
4285
4219
|
peg$currPos += 2;
|
4286
4220
|
} else {
|
4287
4221
|
s1 = null;
|
4288
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4222
|
+
if (peg$silentFails === 0) { peg$fail(peg$c137); }
|
4289
4223
|
}
|
4290
4224
|
if (s1 !== null) {
|
4291
4225
|
if (input.charCodeAt(peg$currPos) === 32) {
|
@@ -4300,7 +4234,7 @@ Emblem.Parser = (function() {
|
|
4300
4234
|
}
|
4301
4235
|
if (s2 !== null) {
|
4302
4236
|
peg$reportedPos = s0;
|
4303
|
-
s1 = peg$
|
4237
|
+
s1 = peg$c138();
|
4304
4238
|
if (s1 === null) {
|
4305
4239
|
peg$currPos = s0;
|
4306
4240
|
s0 = s1;
|
@@ -4337,7 +4271,7 @@ Emblem.Parser = (function() {
|
|
4337
4271
|
}
|
4338
4272
|
if (s2 !== null) {
|
4339
4273
|
peg$reportedPos = s0;
|
4340
|
-
s1 = peg$
|
4274
|
+
s1 = peg$c139();
|
4341
4275
|
if (s1 === null) {
|
4342
4276
|
peg$currPos = s0;
|
4343
4277
|
s0 = s1;
|
@@ -4383,7 +4317,7 @@ Emblem.Parser = (function() {
|
|
4383
4317
|
}
|
4384
4318
|
if (s3 !== null) {
|
4385
4319
|
peg$reportedPos = peg$currPos;
|
4386
|
-
s4 = peg$
|
4320
|
+
s4 = peg$c140(s1, s2);
|
4387
4321
|
if (s4) {
|
4388
4322
|
s4 = peg$c1;
|
4389
4323
|
} else {
|
@@ -4433,7 +4367,7 @@ Emblem.Parser = (function() {
|
|
4433
4367
|
}
|
4434
4368
|
if (s3 !== null) {
|
4435
4369
|
peg$reportedPos = s0;
|
4436
|
-
s1 = peg$
|
4370
|
+
s1 = peg$c141(s1, s2, s3);
|
4437
4371
|
if (s1 === null) {
|
4438
4372
|
peg$currPos = s0;
|
4439
4373
|
s0 = s1;
|
@@ -4465,7 +4399,7 @@ Emblem.Parser = (function() {
|
|
4465
4399
|
s3 = peg$parseidShorthand();
|
4466
4400
|
if (s3 !== null) {
|
4467
4401
|
peg$reportedPos = s2;
|
4468
|
-
s3 = peg$
|
4402
|
+
s3 = peg$c142(s3);
|
4469
4403
|
}
|
4470
4404
|
if (s3 === null) {
|
4471
4405
|
peg$currPos = s2;
|
@@ -4478,7 +4412,7 @@ Emblem.Parser = (function() {
|
|
4478
4412
|
s3 = peg$parseclassShorthand();
|
4479
4413
|
if (s3 !== null) {
|
4480
4414
|
peg$reportedPos = s2;
|
4481
|
-
s3 = peg$
|
4415
|
+
s3 = peg$c143(s3);
|
4482
4416
|
}
|
4483
4417
|
if (s3 === null) {
|
4484
4418
|
peg$currPos = s2;
|
@@ -4494,7 +4428,7 @@ Emblem.Parser = (function() {
|
|
4494
4428
|
s3 = peg$parseidShorthand();
|
4495
4429
|
if (s3 !== null) {
|
4496
4430
|
peg$reportedPos = s2;
|
4497
|
-
s3 = peg$
|
4431
|
+
s3 = peg$c142(s3);
|
4498
4432
|
}
|
4499
4433
|
if (s3 === null) {
|
4500
4434
|
peg$currPos = s2;
|
@@ -4507,7 +4441,7 @@ Emblem.Parser = (function() {
|
|
4507
4441
|
s3 = peg$parseclassShorthand();
|
4508
4442
|
if (s3 !== null) {
|
4509
4443
|
peg$reportedPos = s2;
|
4510
|
-
s3 = peg$
|
4444
|
+
s3 = peg$c143(s3);
|
4511
4445
|
}
|
4512
4446
|
if (s3 === null) {
|
4513
4447
|
peg$currPos = s2;
|
@@ -4522,7 +4456,7 @@ Emblem.Parser = (function() {
|
|
4522
4456
|
}
|
4523
4457
|
if (s1 !== null) {
|
4524
4458
|
peg$reportedPos = s0;
|
4525
|
-
s1 = peg$
|
4459
|
+
s1 = peg$c144(s1);
|
4526
4460
|
}
|
4527
4461
|
if (s1 === null) {
|
4528
4462
|
peg$currPos = s0;
|
@@ -4576,7 +4510,7 @@ Emblem.Parser = (function() {
|
|
4576
4510
|
}
|
4577
4511
|
if (s2 !== null) {
|
4578
4512
|
peg$reportedPos = s0;
|
4579
|
-
s1 = peg$
|
4513
|
+
s1 = peg$c145(s2);
|
4580
4514
|
if (s1 === null) {
|
4581
4515
|
peg$currPos = s0;
|
4582
4516
|
s0 = s1;
|
@@ -4598,12 +4532,12 @@ Emblem.Parser = (function() {
|
|
4598
4532
|
function peg$parseboundAttributeValueChar() {
|
4599
4533
|
var s0;
|
4600
4534
|
|
4601
|
-
if (peg$
|
4535
|
+
if (peg$c146.test(input.charAt(peg$currPos))) {
|
4602
4536
|
s0 = input.charAt(peg$currPos);
|
4603
4537
|
peg$currPos++;
|
4604
4538
|
} else {
|
4605
4539
|
s0 = null;
|
4606
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4540
|
+
if (peg$silentFails === 0) { peg$fail(peg$c147); }
|
4607
4541
|
}
|
4608
4542
|
if (s0 === null) {
|
4609
4543
|
s0 = peg$parsenonSeparatorColon();
|
@@ -4621,7 +4555,7 @@ Emblem.Parser = (function() {
|
|
4621
4555
|
s1 = peg$parsepathIdNode();
|
4622
4556
|
if (s1 !== null) {
|
4623
4557
|
peg$reportedPos = s0;
|
4624
|
-
s1 = peg$
|
4558
|
+
s1 = peg$c148(s1);
|
4625
4559
|
}
|
4626
4560
|
if (s1 === null) {
|
4627
4561
|
peg$currPos = s0;
|
@@ -4737,7 +4671,7 @@ Emblem.Parser = (function() {
|
|
4737
4671
|
s3 = peg$parseactionValue();
|
4738
4672
|
if (s3 !== null) {
|
4739
4673
|
peg$reportedPos = s0;
|
4740
|
-
s1 = peg$
|
4674
|
+
s1 = peg$c149(s1, s3);
|
4741
4675
|
if (s1 === null) {
|
4742
4676
|
peg$currPos = s0;
|
4743
4677
|
s0 = s1;
|
@@ -4792,7 +4726,7 @@ Emblem.Parser = (function() {
|
|
4792
4726
|
}
|
4793
4727
|
if (s3 !== null) {
|
4794
4728
|
peg$reportedPos = s0;
|
4795
|
-
s1 = peg$
|
4729
|
+
s1 = peg$c150(s1, s3);
|
4796
4730
|
if (s1 === null) {
|
4797
4731
|
peg$currPos = s0;
|
4798
4732
|
s0 = s1;
|
@@ -4866,15 +4800,15 @@ Emblem.Parser = (function() {
|
|
4866
4800
|
s4 = peg$parse_();
|
4867
4801
|
if (s4 !== null) {
|
4868
4802
|
if (input.charCodeAt(peg$currPos) === 125) {
|
4869
|
-
s5 = peg$
|
4803
|
+
s5 = peg$c118;
|
4870
4804
|
peg$currPos++;
|
4871
4805
|
} else {
|
4872
4806
|
s5 = null;
|
4873
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4807
|
+
if (peg$silentFails === 0) { peg$fail(peg$c119); }
|
4874
4808
|
}
|
4875
4809
|
if (s5 !== null) {
|
4876
4810
|
peg$reportedPos = s0;
|
4877
|
-
s1 = peg$
|
4811
|
+
s1 = peg$c151(s3);
|
4878
4812
|
if (s1 === null) {
|
4879
4813
|
peg$currPos = s0;
|
4880
4814
|
s0 = s1;
|
@@ -4941,11 +4875,11 @@ Emblem.Parser = (function() {
|
|
4941
4875
|
s4 = peg$currPos;
|
4942
4876
|
peg$silentFails++;
|
4943
4877
|
if (input.charCodeAt(peg$currPos) === 33) {
|
4944
|
-
s5 = peg$
|
4878
|
+
s5 = peg$c152;
|
4945
4879
|
peg$currPos++;
|
4946
4880
|
} else {
|
4947
4881
|
s5 = null;
|
4948
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4882
|
+
if (peg$silentFails === 0) { peg$fail(peg$c153); }
|
4949
4883
|
}
|
4950
4884
|
peg$silentFails--;
|
4951
4885
|
if (s5 === null) {
|
@@ -4956,7 +4890,7 @@ Emblem.Parser = (function() {
|
|
4956
4890
|
}
|
4957
4891
|
if (s4 !== null) {
|
4958
4892
|
peg$reportedPos = peg$currPos;
|
4959
|
-
s5 = peg$
|
4893
|
+
s5 = peg$c154(s1, s3);
|
4960
4894
|
if (s5) {
|
4961
4895
|
s5 = peg$c1;
|
4962
4896
|
} else {
|
@@ -4964,7 +4898,7 @@ Emblem.Parser = (function() {
|
|
4964
4898
|
}
|
4965
4899
|
if (s5 !== null) {
|
4966
4900
|
peg$reportedPos = s0;
|
4967
|
-
s1 = peg$
|
4901
|
+
s1 = peg$c155(s1, s3);
|
4968
4902
|
if (s1 === null) {
|
4969
4903
|
peg$currPos = s0;
|
4970
4904
|
s0 = s1;
|
@@ -5012,7 +4946,7 @@ Emblem.Parser = (function() {
|
|
5012
4946
|
s3 = peg$parsepathIdNode();
|
5013
4947
|
if (s3 !== null) {
|
5014
4948
|
peg$reportedPos = s0;
|
5015
|
-
s1 = peg$
|
4949
|
+
s1 = peg$c156(s1, s3);
|
5016
4950
|
if (s1 === null) {
|
5017
4951
|
peg$currPos = s0;
|
5018
4952
|
s0 = s1;
|
@@ -5052,7 +4986,7 @@ Emblem.Parser = (function() {
|
|
5052
4986
|
s3 = peg$parseattributeTextNodes();
|
5053
4987
|
if (s3 !== null) {
|
5054
4988
|
peg$reportedPos = s0;
|
5055
|
-
s1 = peg$
|
4989
|
+
s1 = peg$c157(s1, s3);
|
5056
4990
|
if (s1 === null) {
|
5057
4991
|
peg$currPos = s0;
|
5058
4992
|
s0 = s1;
|
@@ -5107,11 +5041,11 @@ Emblem.Parser = (function() {
|
|
5107
5041
|
}
|
5108
5042
|
if (s0 === null) {
|
5109
5043
|
if (input.charCodeAt(peg$currPos) === 95) {
|
5110
|
-
s0 = peg$
|
5044
|
+
s0 = peg$c158;
|
5111
5045
|
peg$currPos++;
|
5112
5046
|
} else {
|
5113
5047
|
s0 = null;
|
5114
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5048
|
+
if (peg$silentFails === 0) { peg$fail(peg$c159); }
|
5115
5049
|
}
|
5116
5050
|
if (s0 === null) {
|
5117
5051
|
if (input.charCodeAt(peg$currPos) === 45) {
|
@@ -5133,11 +5067,11 @@ Emblem.Parser = (function() {
|
|
5133
5067
|
|
5134
5068
|
s0 = peg$currPos;
|
5135
5069
|
if (input.charCodeAt(peg$currPos) === 37) {
|
5136
|
-
s1 = peg$
|
5070
|
+
s1 = peg$c160;
|
5137
5071
|
peg$currPos++;
|
5138
5072
|
} else {
|
5139
5073
|
s1 = null;
|
5140
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5074
|
+
if (peg$silentFails === 0) { peg$fail(peg$c161); }
|
5141
5075
|
}
|
5142
5076
|
if (s1 !== null) {
|
5143
5077
|
s2 = peg$parsecssIdentifier();
|
@@ -5167,17 +5101,17 @@ Emblem.Parser = (function() {
|
|
5167
5101
|
|
5168
5102
|
s0 = peg$currPos;
|
5169
5103
|
if (input.charCodeAt(peg$currPos) === 35) {
|
5170
|
-
s1 = peg$
|
5104
|
+
s1 = peg$c162;
|
5171
5105
|
peg$currPos++;
|
5172
5106
|
} else {
|
5173
5107
|
s1 = null;
|
5174
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5108
|
+
if (peg$silentFails === 0) { peg$fail(peg$c163); }
|
5175
5109
|
}
|
5176
5110
|
if (s1 !== null) {
|
5177
5111
|
s2 = peg$parsecssIdentifier();
|
5178
5112
|
if (s2 !== null) {
|
5179
5113
|
peg$reportedPos = s0;
|
5180
|
-
s1 = peg$
|
5114
|
+
s1 = peg$c164(s2);
|
5181
5115
|
if (s1 === null) {
|
5182
5116
|
peg$currPos = s0;
|
5183
5117
|
s0 = s1;
|
@@ -5238,7 +5172,7 @@ Emblem.Parser = (function() {
|
|
5238
5172
|
peg$silentFails--;
|
5239
5173
|
if (s0 === null) {
|
5240
5174
|
s1 = null;
|
5241
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5175
|
+
if (peg$silentFails === 0) { peg$fail(peg$c165); }
|
5242
5176
|
}
|
5243
5177
|
|
5244
5178
|
return s0;
|
@@ -5265,12 +5199,12 @@ Emblem.Parser = (function() {
|
|
5265
5199
|
function peg$parsenmchar() {
|
5266
5200
|
var s0;
|
5267
5201
|
|
5268
|
-
if (peg$
|
5202
|
+
if (peg$c166.test(input.charAt(peg$currPos))) {
|
5269
5203
|
s0 = input.charAt(peg$currPos);
|
5270
5204
|
peg$currPos++;
|
5271
5205
|
} else {
|
5272
5206
|
s0 = null;
|
5273
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5207
|
+
if (peg$silentFails === 0) { peg$fail(peg$c167); }
|
5274
5208
|
}
|
5275
5209
|
if (s0 === null) {
|
5276
5210
|
s0 = peg$parsenonascii();
|
@@ -5282,12 +5216,12 @@ Emblem.Parser = (function() {
|
|
5282
5216
|
function peg$parsenmstart() {
|
5283
5217
|
var s0;
|
5284
5218
|
|
5285
|
-
if (peg$
|
5219
|
+
if (peg$c168.test(input.charAt(peg$currPos))) {
|
5286
5220
|
s0 = input.charAt(peg$currPos);
|
5287
5221
|
peg$currPos++;
|
5288
5222
|
} else {
|
5289
5223
|
s0 = null;
|
5290
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5224
|
+
if (peg$silentFails === 0) { peg$fail(peg$c169); }
|
5291
5225
|
}
|
5292
5226
|
if (s0 === null) {
|
5293
5227
|
s0 = peg$parsenonascii();
|
@@ -5299,12 +5233,12 @@ Emblem.Parser = (function() {
|
|
5299
5233
|
function peg$parsenonascii() {
|
5300
5234
|
var s0;
|
5301
5235
|
|
5302
|
-
if (peg$
|
5236
|
+
if (peg$c170.test(input.charAt(peg$currPos))) {
|
5303
5237
|
s0 = input.charAt(peg$currPos);
|
5304
5238
|
peg$currPos++;
|
5305
5239
|
} else {
|
5306
5240
|
s0 = null;
|
5307
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5241
|
+
if (peg$silentFails === 0) { peg$fail(peg$c171); }
|
5308
5242
|
}
|
5309
5243
|
|
5310
5244
|
return s0;
|
@@ -5338,11 +5272,11 @@ Emblem.Parser = (function() {
|
|
5338
5272
|
peg$silentFails++;
|
5339
5273
|
s0 = peg$currPos;
|
5340
5274
|
if (input.charCodeAt(peg$currPos) === 37) {
|
5341
|
-
s1 = peg$
|
5275
|
+
s1 = peg$c160;
|
5342
5276
|
peg$currPos++;
|
5343
5277
|
} else {
|
5344
5278
|
s1 = null;
|
5345
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5279
|
+
if (peg$silentFails === 0) { peg$fail(peg$c161); }
|
5346
5280
|
}
|
5347
5281
|
if (s1 !== null) {
|
5348
5282
|
s2 = peg$parse_();
|
@@ -5375,7 +5309,7 @@ Emblem.Parser = (function() {
|
|
5375
5309
|
peg$silentFails--;
|
5376
5310
|
if (s0 === null) {
|
5377
5311
|
s1 = null;
|
5378
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5312
|
+
if (peg$silentFails === 0) { peg$fail(peg$c172); }
|
5379
5313
|
}
|
5380
5314
|
|
5381
5315
|
return s0;
|
@@ -5388,7 +5322,7 @@ Emblem.Parser = (function() {
|
|
5388
5322
|
s1 = peg$parsetagString();
|
5389
5323
|
if (s1 !== null) {
|
5390
5324
|
peg$reportedPos = peg$currPos;
|
5391
|
-
s2 = peg$
|
5325
|
+
s2 = peg$c173(s1);
|
5392
5326
|
if (s2) {
|
5393
5327
|
s2 = peg$c1;
|
5394
5328
|
} else {
|
@@ -5396,7 +5330,7 @@ Emblem.Parser = (function() {
|
|
5396
5330
|
}
|
5397
5331
|
if (s2 !== null) {
|
5398
5332
|
peg$reportedPos = s0;
|
5399
|
-
s1 = peg$
|
5333
|
+
s1 = peg$c174(s1);
|
5400
5334
|
if (s1 === null) {
|
5401
5335
|
peg$currPos = s0;
|
5402
5336
|
s0 = s1;
|
@@ -5418,12 +5352,12 @@ Emblem.Parser = (function() {
|
|
5418
5352
|
function peg$parsetagChar() {
|
5419
5353
|
var s0;
|
5420
5354
|
|
5421
|
-
if (peg$
|
5355
|
+
if (peg$c166.test(input.charAt(peg$currPos))) {
|
5422
5356
|
s0 = input.charAt(peg$currPos);
|
5423
5357
|
peg$currPos++;
|
5424
5358
|
} else {
|
5425
5359
|
s0 = null;
|
5426
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5360
|
+
if (peg$silentFails === 0) { peg$fail(peg$c167); }
|
5427
5361
|
}
|
5428
5362
|
if (s0 === null) {
|
5429
5363
|
s0 = peg$parsenonSeparatorColon();
|
@@ -5489,7 +5423,7 @@ Emblem.Parser = (function() {
|
|
5489
5423
|
s1 = peg$parsetagString();
|
5490
5424
|
if (s1 !== null) {
|
5491
5425
|
peg$reportedPos = peg$currPos;
|
5492
|
-
s2 = peg$
|
5426
|
+
s2 = peg$c176(s1);
|
5493
5427
|
if (s2) {
|
5494
5428
|
s2 = peg$c1;
|
5495
5429
|
} else {
|
@@ -5497,7 +5431,7 @@ Emblem.Parser = (function() {
|
|
5497
5431
|
}
|
5498
5432
|
if (s2 !== null) {
|
5499
5433
|
peg$reportedPos = s0;
|
5500
|
-
s1 = peg$
|
5434
|
+
s1 = peg$c174(s1);
|
5501
5435
|
if (s1 === null) {
|
5502
5436
|
peg$currPos = s0;
|
5503
5437
|
s0 = s1;
|
@@ -5515,7 +5449,7 @@ Emblem.Parser = (function() {
|
|
5515
5449
|
peg$silentFails--;
|
5516
5450
|
if (s0 === null) {
|
5517
5451
|
s1 = null;
|
5518
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5452
|
+
if (peg$silentFails === 0) { peg$fail(peg$c175); }
|
5519
5453
|
}
|
5520
5454
|
|
5521
5455
|
return s0;
|
@@ -5555,15 +5489,15 @@ Emblem.Parser = (function() {
|
|
5555
5489
|
peg$silentFails++;
|
5556
5490
|
s0 = peg$currPos;
|
5557
5491
|
if (input.charCodeAt(peg$currPos) === 61423) {
|
5558
|
-
s1 = peg$
|
5492
|
+
s1 = peg$c178;
|
5559
5493
|
peg$currPos++;
|
5560
5494
|
} else {
|
5561
5495
|
s1 = null;
|
5562
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5496
|
+
if (peg$silentFails === 0) { peg$fail(peg$c179); }
|
5563
5497
|
}
|
5564
5498
|
if (s1 !== null) {
|
5565
5499
|
peg$reportedPos = s0;
|
5566
|
-
s1 = peg$
|
5500
|
+
s1 = peg$c180();
|
5567
5501
|
}
|
5568
5502
|
if (s1 === null) {
|
5569
5503
|
peg$currPos = s0;
|
@@ -5574,7 +5508,7 @@ Emblem.Parser = (function() {
|
|
5574
5508
|
peg$silentFails--;
|
5575
5509
|
if (s0 === null) {
|
5576
5510
|
s1 = null;
|
5577
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5511
|
+
if (peg$silentFails === 0) { peg$fail(peg$c177); }
|
5578
5512
|
}
|
5579
5513
|
|
5580
5514
|
return s0;
|
@@ -5586,15 +5520,15 @@ Emblem.Parser = (function() {
|
|
5586
5520
|
peg$silentFails++;
|
5587
5521
|
s0 = peg$currPos;
|
5588
5522
|
if (input.charCodeAt(peg$currPos) === 61438) {
|
5589
|
-
s1 = peg$
|
5523
|
+
s1 = peg$c182;
|
5590
5524
|
peg$currPos++;
|
5591
5525
|
} else {
|
5592
5526
|
s1 = null;
|
5593
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5527
|
+
if (peg$silentFails === 0) { peg$fail(peg$c183); }
|
5594
5528
|
}
|
5595
5529
|
if (s1 !== null) {
|
5596
5530
|
peg$reportedPos = s0;
|
5597
|
-
s1 = peg$
|
5531
|
+
s1 = peg$c180();
|
5598
5532
|
}
|
5599
5533
|
if (s1 === null) {
|
5600
5534
|
peg$currPos = s0;
|
@@ -5605,7 +5539,7 @@ Emblem.Parser = (function() {
|
|
5605
5539
|
peg$silentFails--;
|
5606
5540
|
if (s0 === null) {
|
5607
5541
|
s1 = null;
|
5608
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5542
|
+
if (peg$silentFails === 0) { peg$fail(peg$c181); }
|
5609
5543
|
}
|
5610
5544
|
|
5611
5545
|
return s0;
|
@@ -5617,15 +5551,15 @@ Emblem.Parser = (function() {
|
|
5617
5551
|
peg$silentFails++;
|
5618
5552
|
s0 = peg$currPos;
|
5619
5553
|
if (input.charCodeAt(peg$currPos) === 61422) {
|
5620
|
-
s1 = peg$
|
5554
|
+
s1 = peg$c185;
|
5621
5555
|
peg$currPos++;
|
5622
5556
|
} else {
|
5623
5557
|
s1 = null;
|
5624
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5558
|
+
if (peg$silentFails === 0) { peg$fail(peg$c186); }
|
5625
5559
|
}
|
5626
5560
|
if (s1 !== null) {
|
5627
5561
|
peg$reportedPos = s0;
|
5628
|
-
s1 = peg$
|
5562
|
+
s1 = peg$c180();
|
5629
5563
|
}
|
5630
5564
|
if (s1 === null) {
|
5631
5565
|
peg$currPos = s0;
|
@@ -5636,7 +5570,7 @@ Emblem.Parser = (function() {
|
|
5636
5570
|
peg$silentFails--;
|
5637
5571
|
if (s0 === null) {
|
5638
5572
|
s1 = null;
|
5639
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5573
|
+
if (peg$silentFails === 0) { peg$fail(peg$c184); }
|
5640
5574
|
}
|
5641
5575
|
|
5642
5576
|
return s0;
|
@@ -5648,34 +5582,34 @@ Emblem.Parser = (function() {
|
|
5648
5582
|
peg$silentFails++;
|
5649
5583
|
s0 = peg$currPos;
|
5650
5584
|
if (input.charCodeAt(peg$currPos) === 13) {
|
5651
|
-
s1 = peg$
|
5585
|
+
s1 = peg$c188;
|
5652
5586
|
peg$currPos++;
|
5653
5587
|
} else {
|
5654
5588
|
s1 = null;
|
5655
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5589
|
+
if (peg$silentFails === 0) { peg$fail(peg$c189); }
|
5656
5590
|
}
|
5657
5591
|
if (s1 === null) {
|
5658
5592
|
s1 = peg$c1;
|
5659
5593
|
}
|
5660
5594
|
if (s1 !== null) {
|
5661
5595
|
if (input.charCodeAt(peg$currPos) === 61439) {
|
5662
|
-
s2 = peg$
|
5596
|
+
s2 = peg$c190;
|
5663
5597
|
peg$currPos++;
|
5664
5598
|
} else {
|
5665
5599
|
s2 = null;
|
5666
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5600
|
+
if (peg$silentFails === 0) { peg$fail(peg$c191); }
|
5667
5601
|
}
|
5668
5602
|
if (s2 !== null) {
|
5669
5603
|
if (input.charCodeAt(peg$currPos) === 10) {
|
5670
|
-
s3 = peg$
|
5604
|
+
s3 = peg$c192;
|
5671
5605
|
peg$currPos++;
|
5672
5606
|
} else {
|
5673
5607
|
s3 = null;
|
5674
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5608
|
+
if (peg$silentFails === 0) { peg$fail(peg$c193); }
|
5675
5609
|
}
|
5676
5610
|
if (s3 !== null) {
|
5677
5611
|
peg$reportedPos = s0;
|
5678
|
-
s1 = peg$
|
5612
|
+
s1 = peg$c138();
|
5679
5613
|
if (s1 === null) {
|
5680
5614
|
peg$currPos = s0;
|
5681
5615
|
s0 = s1;
|
@@ -5697,7 +5631,7 @@ Emblem.Parser = (function() {
|
|
5697
5631
|
peg$silentFails--;
|
5698
5632
|
if (s0 === null) {
|
5699
5633
|
s1 = null;
|
5700
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5634
|
+
if (peg$silentFails === 0) { peg$fail(peg$c187); }
|
5701
5635
|
}
|
5702
5636
|
|
5703
5637
|
return s0;
|
@@ -5714,7 +5648,7 @@ Emblem.Parser = (function() {
|
|
5714
5648
|
peg$silentFails--;
|
5715
5649
|
if (s0 === null) {
|
5716
5650
|
s1 = null;
|
5717
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5651
|
+
if (peg$silentFails === 0) { peg$fail(peg$c194); }
|
5718
5652
|
}
|
5719
5653
|
|
5720
5654
|
return s0;
|
@@ -5742,7 +5676,7 @@ Emblem.Parser = (function() {
|
|
5742
5676
|
peg$silentFails--;
|
5743
5677
|
if (s0 === null) {
|
5744
5678
|
s1 = null;
|
5745
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5679
|
+
if (peg$silentFails === 0) { peg$fail(peg$c195); }
|
5746
5680
|
}
|
5747
5681
|
|
5748
5682
|
return s0;
|
@@ -5761,7 +5695,7 @@ Emblem.Parser = (function() {
|
|
5761
5695
|
peg$silentFails--;
|
5762
5696
|
if (s0 === null) {
|
5763
5697
|
s1 = null;
|
5764
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5698
|
+
if (peg$silentFails === 0) { peg$fail(peg$c196); }
|
5765
5699
|
}
|
5766
5700
|
|
5767
5701
|
return s0;
|
@@ -5771,17 +5705,17 @@ Emblem.Parser = (function() {
|
|
5771
5705
|
var s0, s1;
|
5772
5706
|
|
5773
5707
|
peg$silentFails++;
|
5774
|
-
if (peg$
|
5708
|
+
if (peg$c198.test(input.charAt(peg$currPos))) {
|
5775
5709
|
s0 = input.charAt(peg$currPos);
|
5776
5710
|
peg$currPos++;
|
5777
5711
|
} else {
|
5778
5712
|
s0 = null;
|
5779
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5713
|
+
if (peg$silentFails === 0) { peg$fail(peg$c199); }
|
5780
5714
|
}
|
5781
5715
|
peg$silentFails--;
|
5782
5716
|
if (s0 === null) {
|
5783
5717
|
s1 = null;
|
5784
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5718
|
+
if (peg$silentFails === 0) { peg$fail(peg$c197); }
|
5785
5719
|
}
|
5786
5720
|
|
5787
5721
|
return s0;
|
@@ -5813,7 +5747,7 @@ Emblem.Parser = (function() {
|
|
5813
5747
|
peg$currPos++;
|
5814
5748
|
} else {
|
5815
5749
|
s2 = null;
|
5816
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5750
|
+
if (peg$silentFails === 0) { peg$fail(peg$c109); }
|
5817
5751
|
}
|
5818
5752
|
if (s2 !== null) {
|
5819
5753
|
peg$reportedPos = s0;
|