emblem-source 0.1.17 → 0.1.18
Sign up to get free protection for your applications and to get access to all the features.
- data/dist/emblem.js +415 -218
- data/dist/emblem.min.js +2 -2
- metadata +2 -2
data/dist/emblem.js
CHANGED
@@ -178,7 +178,7 @@ this.Emblem = {};
|
|
178
178
|
|
179
179
|
Emblem = this.Emblem;
|
180
180
|
|
181
|
-
Emblem.VERSION = "0.1.
|
181
|
+
Emblem.VERSION = "0.1.17";
|
182
182
|
|
183
183
|
|
184
184
|
|
@@ -569,40 +569,41 @@ Emblem.Parser = (function() {
|
|
569
569
|
return textNodesResult(first, tail);
|
570
570
|
},
|
571
571
|
peg$c87 = function(a) { return a; },
|
572
|
-
peg$c88 = function(
|
573
|
-
peg$c89 = function(m) { m.escaped =
|
574
|
-
peg$c90 = function(
|
575
|
-
peg$c91 =
|
576
|
-
peg$c92 =
|
577
|
-
peg$c93 =
|
578
|
-
peg$c94 = "
|
579
|
-
peg$c95 = "
|
580
|
-
peg$c96 = "
|
581
|
-
peg$c97 = "
|
582
|
-
peg$c98 = "
|
583
|
-
peg$c99 = "
|
584
|
-
peg$c100 = "
|
585
|
-
peg$c101 = "
|
586
|
-
peg$c102 = "
|
587
|
-
peg$c103 = "
|
588
|
-
peg$c104 = "
|
589
|
-
peg$c105 = "
|
590
|
-
peg$c106 = "
|
591
|
-
peg$c107 = "
|
592
|
-
peg$c108 = "
|
593
|
-
peg$c109 = "
|
594
|
-
peg$c110 = "
|
595
|
-
peg$c111 = "
|
596
|
-
peg$c112 = "
|
597
|
-
peg$c113 = "
|
598
|
-
peg$c114 = "
|
599
|
-
peg$c115 = "
|
600
|
-
peg$c116 = "
|
601
|
-
peg$c117 =
|
602
|
-
peg$c118 = function() { return
|
603
|
-
peg$c119 = function(
|
604
|
-
peg$c120 = function(s, m, f) { return [
|
605
|
-
peg$c121 = function(
|
572
|
+
peg$c88 = function(first, tail) { return textNodesResult(first, tail); },
|
573
|
+
peg$c89 = function(m) { m.escaped = true; return m; },
|
574
|
+
peg$c90 = function(m) { m.escaped = false; return m; },
|
575
|
+
peg$c91 = function(a) { return new AST.ContentNode(a); },
|
576
|
+
peg$c92 = "any character",
|
577
|
+
peg$c93 = function(c) { return c; },
|
578
|
+
peg$c94 = "SingleMustacheOpen",
|
579
|
+
peg$c95 = "{",
|
580
|
+
peg$c96 = "\"{\"",
|
581
|
+
peg$c97 = "DoubleMustacheOpen",
|
582
|
+
peg$c98 = "{{",
|
583
|
+
peg$c99 = "\"{{\"",
|
584
|
+
peg$c100 = "TripleMustacheOpen",
|
585
|
+
peg$c101 = "{{{",
|
586
|
+
peg$c102 = "\"{{{\"",
|
587
|
+
peg$c103 = "SingleMustacheClose",
|
588
|
+
peg$c104 = "}",
|
589
|
+
peg$c105 = "\"}\"",
|
590
|
+
peg$c106 = "DoubleMustacheClose",
|
591
|
+
peg$c107 = "}}",
|
592
|
+
peg$c108 = "\"}}\"",
|
593
|
+
peg$c109 = "TripleMustacheClose",
|
594
|
+
peg$c110 = "}}}",
|
595
|
+
peg$c111 = "\"}}}\"",
|
596
|
+
peg$c112 = "InterpolationOpen",
|
597
|
+
peg$c113 = "#{",
|
598
|
+
peg$c114 = "\"#{\"",
|
599
|
+
peg$c115 = "InterpolationClose",
|
600
|
+
peg$c116 = "==",
|
601
|
+
peg$c117 = "\"==\"",
|
602
|
+
peg$c118 = function() { return false; },
|
603
|
+
peg$c119 = function() { return true; },
|
604
|
+
peg$c120 = function(h, s, m, f) { return [h, s, m, f]; },
|
605
|
+
peg$c121 = function(s, m, f) { return [null, s, m, f] },
|
606
|
+
peg$c122 = function(h) {
|
606
607
|
var tagName = h[0] || 'div',
|
607
608
|
shorthandAttributes = h[1] || [],
|
608
609
|
inTagMustaches = h[2],
|
@@ -639,9 +640,9 @@ Emblem.Parser = (function() {
|
|
639
640
|
return [tagOpenContent, new AST.ContentNode('</' + tagName + '>')];
|
640
641
|
}
|
641
642
|
},
|
642
|
-
peg$
|
643
|
-
peg$
|
644
|
-
peg$
|
643
|
+
peg$c123 = function(s) { return { shorthand: s, id: true}; },
|
644
|
+
peg$c124 = function(s) { return { shorthand: s }; },
|
645
|
+
peg$c125 = function(shorthands) {
|
645
646
|
var id, classes = [];
|
646
647
|
for(var i = 0, len = shorthands.length; i < len; ++i) {
|
647
648
|
var shorthand = shorthands[i];
|
@@ -654,21 +655,21 @@ Emblem.Parser = (function() {
|
|
654
655
|
|
655
656
|
return [id, classes];
|
656
657
|
},
|
657
|
-
peg$
|
658
|
+
peg$c126 = function(a) {
|
658
659
|
return [new AST.ContentNode(' ')].concat(a);
|
659
660
|
},
|
660
|
-
peg$
|
661
|
-
peg$
|
662
|
-
peg$
|
663
|
-
peg$
|
661
|
+
peg$c127 = /^[A-Za-z.:0-9_\-]/,
|
662
|
+
peg$c128 = "[A-Za-z.:0-9_\\-]",
|
663
|
+
peg$c129 = function(id) { return new AST.MustacheNode([id]); },
|
664
|
+
peg$c130 = function(event, mustacheNode) {
|
664
665
|
// Unshift the action helper and augment the hash
|
665
666
|
return [unshiftParam(mustacheNode, 'action', [['on', new AST.StringNode(event)]])];
|
666
667
|
},
|
667
|
-
peg$
|
668
|
-
peg$
|
669
|
-
peg$
|
670
|
-
peg$
|
671
|
-
peg$
|
668
|
+
peg$c131 = function(value) { return value.replace(/ *$/, ''); },
|
669
|
+
peg$c132 = "!",
|
670
|
+
peg$c133 = "\"!\"",
|
671
|
+
peg$c134 = function(key, value) { return IS_EMBER; },
|
672
|
+
peg$c135 = function(key, value) {
|
672
673
|
var hashNode = new AST.HashNode([[key, new AST.StringNode(value)]]);
|
673
674
|
var params = [new AST.IdNode(['bindAttr'])];
|
674
675
|
var mustacheNode = new AST.MustacheNode(params, hashNode);
|
@@ -681,7 +682,7 @@ Emblem.Parser = (function() {
|
|
681
682
|
|
682
683
|
return [mustacheNode];
|
683
684
|
},
|
684
|
-
peg$
|
685
|
+
peg$c136 = function(key, id) {
|
685
686
|
var mustacheNode = new AST.MustacheNode([id]);
|
686
687
|
|
687
688
|
if(IS_EMBER && id._emblemSuffixModifier === '!') {
|
@@ -694,55 +695,55 @@ Emblem.Parser = (function() {
|
|
694
695
|
new AST.ContentNode('"'),
|
695
696
|
];
|
696
697
|
},
|
697
|
-
peg$
|
698
|
+
peg$c137 = function(key, nodes) {
|
698
699
|
var result = [ new AST.ContentNode(key + '=' + '"') ].concat(nodes);
|
699
700
|
return result.concat([new AST.ContentNode('"')]);
|
700
701
|
},
|
701
|
-
peg$
|
702
|
-
peg$
|
703
|
-
peg$
|
704
|
-
peg$
|
705
|
-
peg$
|
706
|
-
peg$
|
707
|
-
peg$
|
708
|
-
peg$
|
709
|
-
peg$
|
710
|
-
peg$
|
711
|
-
peg$
|
712
|
-
peg$
|
713
|
-
peg$
|
714
|
-
peg$
|
715
|
-
peg$
|
716
|
-
peg$
|
717
|
-
peg$
|
718
|
-
peg$
|
719
|
-
peg$
|
720
|
-
peg$
|
721
|
-
peg$
|
722
|
-
peg$
|
723
|
-
peg$
|
724
|
-
peg$
|
725
|
-
peg$
|
726
|
-
peg$
|
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$
|
702
|
+
peg$c138 = "_",
|
703
|
+
peg$c139 = "\"_\"",
|
704
|
+
peg$c140 = "-",
|
705
|
+
peg$c141 = "\"-\"",
|
706
|
+
peg$c142 = "%",
|
707
|
+
peg$c143 = "\"%\"",
|
708
|
+
peg$c144 = "#",
|
709
|
+
peg$c145 = "\"#\"",
|
710
|
+
peg$c146 = function(c) { return c;},
|
711
|
+
peg$c147 = "CSSIdentifier",
|
712
|
+
peg$c148 = function(nmstart, nmchars) { return nmstart + nmchars; },
|
713
|
+
peg$c149 = /^[_a-zA-Z0-9\-]/,
|
714
|
+
peg$c150 = "[_a-zA-Z0-9\\-]",
|
715
|
+
peg$c151 = /^[_a-zA-Z]/,
|
716
|
+
peg$c152 = "[_a-zA-Z]",
|
717
|
+
peg$c153 = /^[\x80-\xFF]/,
|
718
|
+
peg$c154 = "[\\x80-\\xFF]",
|
719
|
+
peg$c155 = "KnownHTMLTagName",
|
720
|
+
peg$c156 = function(t) { return !!KNOWN_TAGS[t]; },
|
721
|
+
peg$c157 = function(t) { return t; },
|
722
|
+
peg$c158 = /^[:_a-zA-Z0-9\-]/,
|
723
|
+
peg$c159 = "[:_a-zA-Z0-9\\-]",
|
724
|
+
peg$c160 = "a JS event",
|
725
|
+
peg$c161 = function(t) { return !!KNOWN_EVENTS[t]; },
|
726
|
+
peg$c162 = "INDENT",
|
727
|
+
peg$c163 = "\uEFEF",
|
728
|
+
peg$c164 = "\"\\uEFEF\"",
|
729
|
+
peg$c165 = function() { return ''; },
|
730
|
+
peg$c166 = "DEDENT",
|
731
|
+
peg$c167 = "\uEFFE",
|
732
|
+
peg$c168 = "\"\\uEFFE\"",
|
733
|
+
peg$c169 = "Unmatched DEDENT",
|
734
|
+
peg$c170 = "\uEFEE",
|
735
|
+
peg$c171 = "\"\\uEFEE\"",
|
736
|
+
peg$c172 = "LineEnd",
|
737
|
+
peg$c173 = "\uEFFF",
|
738
|
+
peg$c174 = "\"\\uEFFF\"",
|
739
|
+
peg$c175 = "\n",
|
740
|
+
peg$c176 = "\"\\n\"",
|
741
|
+
peg$c177 = "ANYDEDENT",
|
742
|
+
peg$c178 = "RequiredWhitespace",
|
743
|
+
peg$c179 = "OptionalWhitespace",
|
744
|
+
peg$c180 = "InlineWhitespace",
|
745
|
+
peg$c181 = /^[ \t]/,
|
746
|
+
peg$c182 = "[ \\t]",
|
746
747
|
|
747
748
|
peg$currPos = 0,
|
748
749
|
peg$reportedPos = 0,
|
@@ -3030,6 +3031,47 @@ Emblem.Parser = (function() {
|
|
3030
3031
|
peg$currPos = s0;
|
3031
3032
|
s0 = peg$c0;
|
3032
3033
|
}
|
3034
|
+
if (s0 === null) {
|
3035
|
+
s0 = peg$currPos;
|
3036
|
+
if (input.charCodeAt(peg$currPos) === 39) {
|
3037
|
+
s1 = peg$c69;
|
3038
|
+
peg$currPos++;
|
3039
|
+
} else {
|
3040
|
+
s1 = null;
|
3041
|
+
if (peg$silentFails === 0) { peg$fail(peg$c70); }
|
3042
|
+
}
|
3043
|
+
if (s1 !== null) {
|
3044
|
+
s2 = peg$parseattributeTextNodesInnerSingle();
|
3045
|
+
if (s2 !== null) {
|
3046
|
+
if (input.charCodeAt(peg$currPos) === 39) {
|
3047
|
+
s3 = peg$c69;
|
3048
|
+
peg$currPos++;
|
3049
|
+
} else {
|
3050
|
+
s3 = null;
|
3051
|
+
if (peg$silentFails === 0) { peg$fail(peg$c70); }
|
3052
|
+
}
|
3053
|
+
if (s3 !== null) {
|
3054
|
+
peg$reportedPos = s0;
|
3055
|
+
s1 = peg$c87(s2);
|
3056
|
+
if (s1 === null) {
|
3057
|
+
peg$currPos = s0;
|
3058
|
+
s0 = s1;
|
3059
|
+
} else {
|
3060
|
+
s0 = s1;
|
3061
|
+
}
|
3062
|
+
} else {
|
3063
|
+
peg$currPos = s0;
|
3064
|
+
s0 = peg$c0;
|
3065
|
+
}
|
3066
|
+
} else {
|
3067
|
+
peg$currPos = s0;
|
3068
|
+
s0 = peg$c0;
|
3069
|
+
}
|
3070
|
+
} else {
|
3071
|
+
peg$currPos = s0;
|
3072
|
+
s0 = peg$c0;
|
3073
|
+
}
|
3074
|
+
}
|
3033
3075
|
|
3034
3076
|
return s0;
|
3035
3077
|
}
|
@@ -3085,7 +3127,77 @@ Emblem.Parser = (function() {
|
|
3085
3127
|
}
|
3086
3128
|
if (s2 !== null) {
|
3087
3129
|
peg$reportedPos = s0;
|
3088
|
-
s1 = peg$
|
3130
|
+
s1 = peg$c88(s1,s2);
|
3131
|
+
if (s1 === null) {
|
3132
|
+
peg$currPos = s0;
|
3133
|
+
s0 = s1;
|
3134
|
+
} else {
|
3135
|
+
s0 = s1;
|
3136
|
+
}
|
3137
|
+
} else {
|
3138
|
+
peg$currPos = s0;
|
3139
|
+
s0 = peg$c0;
|
3140
|
+
}
|
3141
|
+
} else {
|
3142
|
+
peg$currPos = s0;
|
3143
|
+
s0 = peg$c0;
|
3144
|
+
}
|
3145
|
+
|
3146
|
+
return s0;
|
3147
|
+
}
|
3148
|
+
|
3149
|
+
function peg$parseattributeTextNodesInnerSingle() {
|
3150
|
+
var s0, s1, s2, s3, s4, s5;
|
3151
|
+
|
3152
|
+
s0 = peg$currPos;
|
3153
|
+
s1 = peg$parsepreAttrMustacheTextSingle();
|
3154
|
+
if (s1 === null) {
|
3155
|
+
s1 = peg$c1;
|
3156
|
+
}
|
3157
|
+
if (s1 !== null) {
|
3158
|
+
s2 = [];
|
3159
|
+
s3 = peg$currPos;
|
3160
|
+
s4 = peg$parserawMustache();
|
3161
|
+
if (s4 !== null) {
|
3162
|
+
s5 = peg$parsepreAttrMustacheTextSingle();
|
3163
|
+
if (s5 === null) {
|
3164
|
+
s5 = peg$c1;
|
3165
|
+
}
|
3166
|
+
if (s5 !== null) {
|
3167
|
+
s4 = [s4, s5];
|
3168
|
+
s3 = s4;
|
3169
|
+
} else {
|
3170
|
+
peg$currPos = s3;
|
3171
|
+
s3 = peg$c0;
|
3172
|
+
}
|
3173
|
+
} else {
|
3174
|
+
peg$currPos = s3;
|
3175
|
+
s3 = peg$c0;
|
3176
|
+
}
|
3177
|
+
while (s3 !== null) {
|
3178
|
+
s2.push(s3);
|
3179
|
+
s3 = peg$currPos;
|
3180
|
+
s4 = peg$parserawMustache();
|
3181
|
+
if (s4 !== null) {
|
3182
|
+
s5 = peg$parsepreAttrMustacheTextSingle();
|
3183
|
+
if (s5 === null) {
|
3184
|
+
s5 = peg$c1;
|
3185
|
+
}
|
3186
|
+
if (s5 !== null) {
|
3187
|
+
s4 = [s4, s5];
|
3188
|
+
s3 = s4;
|
3189
|
+
} else {
|
3190
|
+
peg$currPos = s3;
|
3191
|
+
s3 = peg$c0;
|
3192
|
+
}
|
3193
|
+
} else {
|
3194
|
+
peg$currPos = s3;
|
3195
|
+
s3 = peg$c0;
|
3196
|
+
}
|
3197
|
+
}
|
3198
|
+
if (s2 !== null) {
|
3199
|
+
peg$reportedPos = s0;
|
3200
|
+
s1 = peg$c88(s1,s2);
|
3089
3201
|
if (s1 === null) {
|
3090
3202
|
peg$currPos = s0;
|
3091
3203
|
s0 = s1;
|
@@ -3130,7 +3242,7 @@ Emblem.Parser = (function() {
|
|
3130
3242
|
s5 = peg$parsedoubleClose();
|
3131
3243
|
if (s5 !== null) {
|
3132
3244
|
peg$reportedPos = s0;
|
3133
|
-
s1 = peg$
|
3245
|
+
s1 = peg$c89(s3);
|
3134
3246
|
if (s1 === null) {
|
3135
3247
|
peg$currPos = s0;
|
3136
3248
|
s0 = s1;
|
@@ -3170,7 +3282,7 @@ Emblem.Parser = (function() {
|
|
3170
3282
|
s5 = peg$parsehashStacheClose();
|
3171
3283
|
if (s5 !== null) {
|
3172
3284
|
peg$reportedPos = s0;
|
3173
|
-
s1 = peg$
|
3285
|
+
s1 = peg$c89(s3);
|
3174
3286
|
if (s1 === null) {
|
3175
3287
|
peg$currPos = s0;
|
3176
3288
|
s0 = s1;
|
@@ -3217,7 +3329,7 @@ Emblem.Parser = (function() {
|
|
3217
3329
|
s5 = peg$parsetripleClose();
|
3218
3330
|
if (s5 !== null) {
|
3219
3331
|
peg$reportedPos = s0;
|
3220
|
-
s1 = peg$
|
3332
|
+
s1 = peg$c90(s3);
|
3221
3333
|
if (s1 === null) {
|
3222
3334
|
peg$currPos = s0;
|
3223
3335
|
s0 = s1;
|
@@ -3269,7 +3381,40 @@ Emblem.Parser = (function() {
|
|
3269
3381
|
s1 = s2;
|
3270
3382
|
if (s1 !== null) {
|
3271
3383
|
peg$reportedPos = s0;
|
3272
|
-
s1 = peg$
|
3384
|
+
s1 = peg$c91(s1);
|
3385
|
+
}
|
3386
|
+
if (s1 === null) {
|
3387
|
+
peg$currPos = s0;
|
3388
|
+
s0 = s1;
|
3389
|
+
} else {
|
3390
|
+
s0 = s1;
|
3391
|
+
}
|
3392
|
+
|
3393
|
+
return s0;
|
3394
|
+
}
|
3395
|
+
|
3396
|
+
function peg$parsepreAttrMustacheTextSingle() {
|
3397
|
+
var s0, s1, s2, s3;
|
3398
|
+
|
3399
|
+
s0 = peg$currPos;
|
3400
|
+
s1 = peg$currPos;
|
3401
|
+
s2 = [];
|
3402
|
+
s3 = peg$parsepreAttrMustacheUnitSingle();
|
3403
|
+
if (s3 !== null) {
|
3404
|
+
while (s3 !== null) {
|
3405
|
+
s2.push(s3);
|
3406
|
+
s3 = peg$parsepreAttrMustacheUnitSingle();
|
3407
|
+
}
|
3408
|
+
} else {
|
3409
|
+
s2 = peg$c0;
|
3410
|
+
}
|
3411
|
+
if (s2 !== null) {
|
3412
|
+
s2 = input.substring(s1, peg$currPos);
|
3413
|
+
}
|
3414
|
+
s1 = s2;
|
3415
|
+
if (s1 !== null) {
|
3416
|
+
peg$reportedPos = s0;
|
3417
|
+
s1 = peg$c91(s1);
|
3273
3418
|
}
|
3274
3419
|
if (s1 === null) {
|
3275
3420
|
peg$currPos = s0;
|
@@ -3310,11 +3455,63 @@ Emblem.Parser = (function() {
|
|
3310
3455
|
peg$currPos++;
|
3311
3456
|
} else {
|
3312
3457
|
s2 = null;
|
3313
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
3458
|
+
if (peg$silentFails === 0) { peg$fail(peg$c92); }
|
3314
3459
|
}
|
3315
3460
|
if (s2 !== null) {
|
3316
3461
|
peg$reportedPos = s0;
|
3317
|
-
s1 = peg$
|
3462
|
+
s1 = peg$c93(s2);
|
3463
|
+
if (s1 === null) {
|
3464
|
+
peg$currPos = s0;
|
3465
|
+
s0 = s1;
|
3466
|
+
} else {
|
3467
|
+
s0 = s1;
|
3468
|
+
}
|
3469
|
+
} else {
|
3470
|
+
peg$currPos = s0;
|
3471
|
+
s0 = peg$c0;
|
3472
|
+
}
|
3473
|
+
} else {
|
3474
|
+
peg$currPos = s0;
|
3475
|
+
s0 = peg$c0;
|
3476
|
+
}
|
3477
|
+
|
3478
|
+
return s0;
|
3479
|
+
}
|
3480
|
+
|
3481
|
+
function peg$parsepreAttrMustacheUnitSingle() {
|
3482
|
+
var s0, s1, s2;
|
3483
|
+
|
3484
|
+
s0 = peg$currPos;
|
3485
|
+
s1 = peg$currPos;
|
3486
|
+
peg$silentFails++;
|
3487
|
+
s2 = peg$parsenonMustacheUnit();
|
3488
|
+
if (s2 === null) {
|
3489
|
+
if (input.charCodeAt(peg$currPos) === 39) {
|
3490
|
+
s2 = peg$c69;
|
3491
|
+
peg$currPos++;
|
3492
|
+
} else {
|
3493
|
+
s2 = null;
|
3494
|
+
if (peg$silentFails === 0) { peg$fail(peg$c70); }
|
3495
|
+
}
|
3496
|
+
}
|
3497
|
+
peg$silentFails--;
|
3498
|
+
if (s2 === null) {
|
3499
|
+
s1 = peg$c1;
|
3500
|
+
} else {
|
3501
|
+
peg$currPos = s1;
|
3502
|
+
s1 = peg$c0;
|
3503
|
+
}
|
3504
|
+
if (s1 !== null) {
|
3505
|
+
if (input.length > peg$currPos) {
|
3506
|
+
s2 = input.charAt(peg$currPos);
|
3507
|
+
peg$currPos++;
|
3508
|
+
} else {
|
3509
|
+
s2 = null;
|
3510
|
+
if (peg$silentFails === 0) { peg$fail(peg$c92); }
|
3511
|
+
}
|
3512
|
+
if (s2 !== null) {
|
3513
|
+
peg$reportedPos = s0;
|
3514
|
+
s1 = peg$c93(s2);
|
3318
3515
|
if (s1 === null) {
|
3319
3516
|
peg$currPos = s0;
|
3320
3517
|
s0 = s1;
|
@@ -3354,7 +3551,7 @@ Emblem.Parser = (function() {
|
|
3354
3551
|
s1 = s2;
|
3355
3552
|
if (s1 !== null) {
|
3356
3553
|
peg$reportedPos = s0;
|
3357
|
-
s1 = peg$
|
3554
|
+
s1 = peg$c91(s1);
|
3358
3555
|
}
|
3359
3556
|
if (s1 === null) {
|
3360
3557
|
peg$currPos = s0;
|
@@ -3386,11 +3583,11 @@ Emblem.Parser = (function() {
|
|
3386
3583
|
peg$currPos++;
|
3387
3584
|
} else {
|
3388
3585
|
s2 = null;
|
3389
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
3586
|
+
if (peg$silentFails === 0) { peg$fail(peg$c92); }
|
3390
3587
|
}
|
3391
3588
|
if (s2 !== null) {
|
3392
3589
|
peg$reportedPos = s0;
|
3393
|
-
s1 = peg$
|
3590
|
+
s1 = peg$c93(s2);
|
3394
3591
|
if (s1 === null) {
|
3395
3592
|
peg$currPos = s0;
|
3396
3593
|
s0 = s1;
|
@@ -3444,7 +3641,7 @@ Emblem.Parser = (function() {
|
|
3444
3641
|
s5 = peg$parsesingleClose();
|
3445
3642
|
if (s5 !== null) {
|
3446
3643
|
peg$reportedPos = s0;
|
3447
|
-
s1 = peg$
|
3644
|
+
s1 = peg$c89(s3);
|
3448
3645
|
if (s1 === null) {
|
3449
3646
|
peg$currPos = s0;
|
3450
3647
|
s0 = s1;
|
@@ -3494,16 +3691,16 @@ Emblem.Parser = (function() {
|
|
3494
3691
|
|
3495
3692
|
peg$silentFails++;
|
3496
3693
|
if (input.charCodeAt(peg$currPos) === 123) {
|
3497
|
-
s0 = peg$
|
3694
|
+
s0 = peg$c95;
|
3498
3695
|
peg$currPos++;
|
3499
3696
|
} else {
|
3500
3697
|
s0 = null;
|
3501
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
3698
|
+
if (peg$silentFails === 0) { peg$fail(peg$c96); }
|
3502
3699
|
}
|
3503
3700
|
peg$silentFails--;
|
3504
3701
|
if (s0 === null) {
|
3505
3702
|
s1 = null;
|
3506
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
3703
|
+
if (peg$silentFails === 0) { peg$fail(peg$c94); }
|
3507
3704
|
}
|
3508
3705
|
|
3509
3706
|
return s0;
|
@@ -3513,17 +3710,17 @@ Emblem.Parser = (function() {
|
|
3513
3710
|
var s0, s1;
|
3514
3711
|
|
3515
3712
|
peg$silentFails++;
|
3516
|
-
if (input.substr(peg$currPos, 2) === peg$
|
3517
|
-
s0 = peg$
|
3713
|
+
if (input.substr(peg$currPos, 2) === peg$c98) {
|
3714
|
+
s0 = peg$c98;
|
3518
3715
|
peg$currPos += 2;
|
3519
3716
|
} else {
|
3520
3717
|
s0 = null;
|
3521
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
3718
|
+
if (peg$silentFails === 0) { peg$fail(peg$c99); }
|
3522
3719
|
}
|
3523
3720
|
peg$silentFails--;
|
3524
3721
|
if (s0 === null) {
|
3525
3722
|
s1 = null;
|
3526
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
3723
|
+
if (peg$silentFails === 0) { peg$fail(peg$c97); }
|
3527
3724
|
}
|
3528
3725
|
|
3529
3726
|
return s0;
|
@@ -3533,17 +3730,17 @@ Emblem.Parser = (function() {
|
|
3533
3730
|
var s0, s1;
|
3534
3731
|
|
3535
3732
|
peg$silentFails++;
|
3536
|
-
if (input.substr(peg$currPos, 3) === peg$
|
3537
|
-
s0 = peg$
|
3733
|
+
if (input.substr(peg$currPos, 3) === peg$c101) {
|
3734
|
+
s0 = peg$c101;
|
3538
3735
|
peg$currPos += 3;
|
3539
3736
|
} else {
|
3540
3737
|
s0 = null;
|
3541
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
3738
|
+
if (peg$silentFails === 0) { peg$fail(peg$c102); }
|
3542
3739
|
}
|
3543
3740
|
peg$silentFails--;
|
3544
3741
|
if (s0 === null) {
|
3545
3742
|
s1 = null;
|
3546
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
3743
|
+
if (peg$silentFails === 0) { peg$fail(peg$c100); }
|
3547
3744
|
}
|
3548
3745
|
|
3549
3746
|
return s0;
|
@@ -3554,16 +3751,16 @@ Emblem.Parser = (function() {
|
|
3554
3751
|
|
3555
3752
|
peg$silentFails++;
|
3556
3753
|
if (input.charCodeAt(peg$currPos) === 125) {
|
3557
|
-
s0 = peg$
|
3754
|
+
s0 = peg$c104;
|
3558
3755
|
peg$currPos++;
|
3559
3756
|
} else {
|
3560
3757
|
s0 = null;
|
3561
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
3758
|
+
if (peg$silentFails === 0) { peg$fail(peg$c105); }
|
3562
3759
|
}
|
3563
3760
|
peg$silentFails--;
|
3564
3761
|
if (s0 === null) {
|
3565
3762
|
s1 = null;
|
3566
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
3763
|
+
if (peg$silentFails === 0) { peg$fail(peg$c103); }
|
3567
3764
|
}
|
3568
3765
|
|
3569
3766
|
return s0;
|
@@ -3573,17 +3770,17 @@ Emblem.Parser = (function() {
|
|
3573
3770
|
var s0, s1;
|
3574
3771
|
|
3575
3772
|
peg$silentFails++;
|
3576
|
-
if (input.substr(peg$currPos, 2) === peg$
|
3577
|
-
s0 = peg$
|
3773
|
+
if (input.substr(peg$currPos, 2) === peg$c107) {
|
3774
|
+
s0 = peg$c107;
|
3578
3775
|
peg$currPos += 2;
|
3579
3776
|
} else {
|
3580
3777
|
s0 = null;
|
3581
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
3778
|
+
if (peg$silentFails === 0) { peg$fail(peg$c108); }
|
3582
3779
|
}
|
3583
3780
|
peg$silentFails--;
|
3584
3781
|
if (s0 === null) {
|
3585
3782
|
s1 = null;
|
3586
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
3783
|
+
if (peg$silentFails === 0) { peg$fail(peg$c106); }
|
3587
3784
|
}
|
3588
3785
|
|
3589
3786
|
return s0;
|
@@ -3593,17 +3790,17 @@ Emblem.Parser = (function() {
|
|
3593
3790
|
var s0, s1;
|
3594
3791
|
|
3595
3792
|
peg$silentFails++;
|
3596
|
-
if (input.substr(peg$currPos, 3) === peg$
|
3597
|
-
s0 = peg$
|
3793
|
+
if (input.substr(peg$currPos, 3) === peg$c110) {
|
3794
|
+
s0 = peg$c110;
|
3598
3795
|
peg$currPos += 3;
|
3599
3796
|
} else {
|
3600
3797
|
s0 = null;
|
3601
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
3798
|
+
if (peg$silentFails === 0) { peg$fail(peg$c111); }
|
3602
3799
|
}
|
3603
3800
|
peg$silentFails--;
|
3604
3801
|
if (s0 === null) {
|
3605
3802
|
s1 = null;
|
3606
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
3803
|
+
if (peg$silentFails === 0) { peg$fail(peg$c109); }
|
3607
3804
|
}
|
3608
3805
|
|
3609
3806
|
return s0;
|
@@ -3613,17 +3810,17 @@ Emblem.Parser = (function() {
|
|
3613
3810
|
var s0, s1;
|
3614
3811
|
|
3615
3812
|
peg$silentFails++;
|
3616
|
-
if (input.substr(peg$currPos, 2) === peg$
|
3617
|
-
s0 = peg$
|
3813
|
+
if (input.substr(peg$currPos, 2) === peg$c113) {
|
3814
|
+
s0 = peg$c113;
|
3618
3815
|
peg$currPos += 2;
|
3619
3816
|
} else {
|
3620
3817
|
s0 = null;
|
3621
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
3818
|
+
if (peg$silentFails === 0) { peg$fail(peg$c114); }
|
3622
3819
|
}
|
3623
3820
|
peg$silentFails--;
|
3624
3821
|
if (s0 === null) {
|
3625
3822
|
s1 = null;
|
3626
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
3823
|
+
if (peg$silentFails === 0) { peg$fail(peg$c112); }
|
3627
3824
|
}
|
3628
3825
|
|
3629
3826
|
return s0;
|
@@ -3634,16 +3831,16 @@ Emblem.Parser = (function() {
|
|
3634
3831
|
|
3635
3832
|
peg$silentFails++;
|
3636
3833
|
if (input.charCodeAt(peg$currPos) === 125) {
|
3637
|
-
s0 = peg$
|
3834
|
+
s0 = peg$c104;
|
3638
3835
|
peg$currPos++;
|
3639
3836
|
} else {
|
3640
3837
|
s0 = null;
|
3641
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
3838
|
+
if (peg$silentFails === 0) { peg$fail(peg$c105); }
|
3642
3839
|
}
|
3643
3840
|
peg$silentFails--;
|
3644
3841
|
if (s0 === null) {
|
3645
3842
|
s1 = null;
|
3646
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
3843
|
+
if (peg$silentFails === 0) { peg$fail(peg$c115); }
|
3647
3844
|
}
|
3648
3845
|
|
3649
3846
|
return s0;
|
@@ -3653,12 +3850,12 @@ Emblem.Parser = (function() {
|
|
3653
3850
|
var s0, s1, s2;
|
3654
3851
|
|
3655
3852
|
s0 = peg$currPos;
|
3656
|
-
if (input.substr(peg$currPos, 2) === peg$
|
3657
|
-
s1 = peg$
|
3853
|
+
if (input.substr(peg$currPos, 2) === peg$c116) {
|
3854
|
+
s1 = peg$c116;
|
3658
3855
|
peg$currPos += 2;
|
3659
3856
|
} else {
|
3660
3857
|
s1 = null;
|
3661
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
3858
|
+
if (peg$silentFails === 0) { peg$fail(peg$c117); }
|
3662
3859
|
}
|
3663
3860
|
if (s1 !== null) {
|
3664
3861
|
if (input.charCodeAt(peg$currPos) === 32) {
|
@@ -3673,7 +3870,7 @@ Emblem.Parser = (function() {
|
|
3673
3870
|
}
|
3674
3871
|
if (s2 !== null) {
|
3675
3872
|
peg$reportedPos = s0;
|
3676
|
-
s1 = peg$
|
3873
|
+
s1 = peg$c118();
|
3677
3874
|
if (s1 === null) {
|
3678
3875
|
peg$currPos = s0;
|
3679
3876
|
s0 = s1;
|
@@ -3710,7 +3907,7 @@ Emblem.Parser = (function() {
|
|
3710
3907
|
}
|
3711
3908
|
if (s2 !== null) {
|
3712
3909
|
peg$reportedPos = s0;
|
3713
|
-
s1 = peg$
|
3910
|
+
s1 = peg$c119();
|
3714
3911
|
if (s1 === null) {
|
3715
3912
|
peg$currPos = s0;
|
3716
3913
|
s0 = s1;
|
@@ -3757,7 +3954,7 @@ Emblem.Parser = (function() {
|
|
3757
3954
|
}
|
3758
3955
|
if (s5 !== null) {
|
3759
3956
|
peg$reportedPos = s1;
|
3760
|
-
s2 = peg$
|
3957
|
+
s2 = peg$c120(s2,s3,s4,s5);
|
3761
3958
|
if (s2 === null) {
|
3762
3959
|
peg$currPos = s1;
|
3763
3960
|
s1 = s2;
|
@@ -3799,7 +3996,7 @@ Emblem.Parser = (function() {
|
|
3799
3996
|
}
|
3800
3997
|
if (s4 !== null) {
|
3801
3998
|
peg$reportedPos = s1;
|
3802
|
-
s2 = peg$
|
3999
|
+
s2 = peg$c121(s2,s3,s4);
|
3803
4000
|
if (s2 === null) {
|
3804
4001
|
peg$currPos = s1;
|
3805
4002
|
s1 = s2;
|
@@ -3821,7 +4018,7 @@ Emblem.Parser = (function() {
|
|
3821
4018
|
}
|
3822
4019
|
if (s1 !== null) {
|
3823
4020
|
peg$reportedPos = s0;
|
3824
|
-
s1 = peg$
|
4021
|
+
s1 = peg$c122(s1);
|
3825
4022
|
}
|
3826
4023
|
if (s1 === null) {
|
3827
4024
|
peg$currPos = s0;
|
@@ -3842,7 +4039,7 @@ Emblem.Parser = (function() {
|
|
3842
4039
|
s3 = peg$parseidShorthand();
|
3843
4040
|
if (s3 !== null) {
|
3844
4041
|
peg$reportedPos = s2;
|
3845
|
-
s3 = peg$
|
4042
|
+
s3 = peg$c123(s3);
|
3846
4043
|
}
|
3847
4044
|
if (s3 === null) {
|
3848
4045
|
peg$currPos = s2;
|
@@ -3855,7 +4052,7 @@ Emblem.Parser = (function() {
|
|
3855
4052
|
s3 = peg$parseclassShorthand();
|
3856
4053
|
if (s3 !== null) {
|
3857
4054
|
peg$reportedPos = s2;
|
3858
|
-
s3 = peg$
|
4055
|
+
s3 = peg$c124(s3);
|
3859
4056
|
}
|
3860
4057
|
if (s3 === null) {
|
3861
4058
|
peg$currPos = s2;
|
@@ -3871,7 +4068,7 @@ Emblem.Parser = (function() {
|
|
3871
4068
|
s3 = peg$parseidShorthand();
|
3872
4069
|
if (s3 !== null) {
|
3873
4070
|
peg$reportedPos = s2;
|
3874
|
-
s3 = peg$
|
4071
|
+
s3 = peg$c123(s3);
|
3875
4072
|
}
|
3876
4073
|
if (s3 === null) {
|
3877
4074
|
peg$currPos = s2;
|
@@ -3884,7 +4081,7 @@ Emblem.Parser = (function() {
|
|
3884
4081
|
s3 = peg$parseclassShorthand();
|
3885
4082
|
if (s3 !== null) {
|
3886
4083
|
peg$reportedPos = s2;
|
3887
|
-
s3 = peg$
|
4084
|
+
s3 = peg$c124(s3);
|
3888
4085
|
}
|
3889
4086
|
if (s3 === null) {
|
3890
4087
|
peg$currPos = s2;
|
@@ -3899,7 +4096,7 @@ Emblem.Parser = (function() {
|
|
3899
4096
|
}
|
3900
4097
|
if (s1 !== null) {
|
3901
4098
|
peg$reportedPos = s0;
|
3902
|
-
s1 = peg$
|
4099
|
+
s1 = peg$c125(s1);
|
3903
4100
|
}
|
3904
4101
|
if (s1 === null) {
|
3905
4102
|
peg$currPos = s0;
|
@@ -3950,7 +4147,7 @@ Emblem.Parser = (function() {
|
|
3950
4147
|
}
|
3951
4148
|
if (s2 !== null) {
|
3952
4149
|
peg$reportedPos = s0;
|
3953
|
-
s1 = peg$
|
4150
|
+
s1 = peg$c126(s2);
|
3954
4151
|
if (s1 === null) {
|
3955
4152
|
peg$currPos = s0;
|
3956
4153
|
s0 = s1;
|
@@ -3972,12 +4169,12 @@ Emblem.Parser = (function() {
|
|
3972
4169
|
function peg$parseboundAttributeValueChar() {
|
3973
4170
|
var s0;
|
3974
4171
|
|
3975
|
-
if (peg$
|
4172
|
+
if (peg$c127.test(input.charAt(peg$currPos))) {
|
3976
4173
|
s0 = input.charAt(peg$currPos);
|
3977
4174
|
peg$currPos++;
|
3978
4175
|
} else {
|
3979
4176
|
s0 = null;
|
3980
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4177
|
+
if (peg$silentFails === 0) { peg$fail(peg$c128); }
|
3981
4178
|
}
|
3982
4179
|
|
3983
4180
|
return s0;
|
@@ -3992,7 +4189,7 @@ Emblem.Parser = (function() {
|
|
3992
4189
|
s1 = peg$parsepathIdNode();
|
3993
4190
|
if (s1 !== null) {
|
3994
4191
|
peg$reportedPos = s0;
|
3995
|
-
s1 = peg$
|
4192
|
+
s1 = peg$c129(s1);
|
3996
4193
|
}
|
3997
4194
|
if (s1 === null) {
|
3998
4195
|
peg$currPos = s0;
|
@@ -4108,7 +4305,7 @@ Emblem.Parser = (function() {
|
|
4108
4305
|
s3 = peg$parseactionValue();
|
4109
4306
|
if (s3 !== null) {
|
4110
4307
|
peg$reportedPos = s0;
|
4111
|
-
s1 = peg$
|
4308
|
+
s1 = peg$c130(s1,s3);
|
4112
4309
|
if (s1 === null) {
|
4113
4310
|
peg$currPos = s0;
|
4114
4311
|
s0 = s1;
|
@@ -4136,11 +4333,11 @@ Emblem.Parser = (function() {
|
|
4136
4333
|
|
4137
4334
|
s0 = peg$currPos;
|
4138
4335
|
if (input.charCodeAt(peg$currPos) === 123) {
|
4139
|
-
s1 = peg$
|
4336
|
+
s1 = peg$c95;
|
4140
4337
|
peg$currPos++;
|
4141
4338
|
} else {
|
4142
4339
|
s1 = null;
|
4143
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4340
|
+
if (peg$silentFails === 0) { peg$fail(peg$c96); }
|
4144
4341
|
}
|
4145
4342
|
if (s1 !== null) {
|
4146
4343
|
s2 = peg$parse_();
|
@@ -4182,15 +4379,15 @@ Emblem.Parser = (function() {
|
|
4182
4379
|
s4 = peg$parse_();
|
4183
4380
|
if (s4 !== null) {
|
4184
4381
|
if (input.charCodeAt(peg$currPos) === 125) {
|
4185
|
-
s5 = peg$
|
4382
|
+
s5 = peg$c104;
|
4186
4383
|
peg$currPos++;
|
4187
4384
|
} else {
|
4188
4385
|
s5 = null;
|
4189
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4386
|
+
if (peg$silentFails === 0) { peg$fail(peg$c105); }
|
4190
4387
|
}
|
4191
4388
|
if (s5 !== null) {
|
4192
4389
|
peg$reportedPos = s0;
|
4193
|
-
s1 = peg$
|
4390
|
+
s1 = peg$c131(s3);
|
4194
4391
|
if (s1 === null) {
|
4195
4392
|
peg$currPos = s0;
|
4196
4393
|
s0 = s1;
|
@@ -4257,11 +4454,11 @@ Emblem.Parser = (function() {
|
|
4257
4454
|
s4 = peg$currPos;
|
4258
4455
|
peg$silentFails++;
|
4259
4456
|
if (input.charCodeAt(peg$currPos) === 33) {
|
4260
|
-
s5 = peg$
|
4457
|
+
s5 = peg$c132;
|
4261
4458
|
peg$currPos++;
|
4262
4459
|
} else {
|
4263
4460
|
s5 = null;
|
4264
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4461
|
+
if (peg$silentFails === 0) { peg$fail(peg$c133); }
|
4265
4462
|
}
|
4266
4463
|
peg$silentFails--;
|
4267
4464
|
if (s5 === null) {
|
@@ -4272,7 +4469,7 @@ Emblem.Parser = (function() {
|
|
4272
4469
|
}
|
4273
4470
|
if (s4 !== null) {
|
4274
4471
|
peg$reportedPos = peg$currPos;
|
4275
|
-
s5 = peg$
|
4472
|
+
s5 = peg$c134(s1,s3);
|
4276
4473
|
if (s5) {
|
4277
4474
|
s5 = peg$c1;
|
4278
4475
|
} else {
|
@@ -4280,7 +4477,7 @@ Emblem.Parser = (function() {
|
|
4280
4477
|
}
|
4281
4478
|
if (s5 !== null) {
|
4282
4479
|
peg$reportedPos = s0;
|
4283
|
-
s1 = peg$
|
4480
|
+
s1 = peg$c135(s1,s3);
|
4284
4481
|
if (s1 === null) {
|
4285
4482
|
peg$currPos = s0;
|
4286
4483
|
s0 = s1;
|
@@ -4328,7 +4525,7 @@ Emblem.Parser = (function() {
|
|
4328
4525
|
s3 = peg$parsepathIdNode();
|
4329
4526
|
if (s3 !== null) {
|
4330
4527
|
peg$reportedPos = s0;
|
4331
|
-
s1 = peg$
|
4528
|
+
s1 = peg$c136(s1,s3);
|
4332
4529
|
if (s1 === null) {
|
4333
4530
|
peg$currPos = s0;
|
4334
4531
|
s0 = s1;
|
@@ -4368,7 +4565,7 @@ Emblem.Parser = (function() {
|
|
4368
4565
|
s3 = peg$parseattributeTextNodes();
|
4369
4566
|
if (s3 !== null) {
|
4370
4567
|
peg$reportedPos = s0;
|
4371
|
-
s1 = peg$
|
4568
|
+
s1 = peg$c137(s1,s3);
|
4372
4569
|
if (s1 === null) {
|
4373
4570
|
peg$currPos = s0;
|
4374
4571
|
s0 = s1;
|
@@ -4434,19 +4631,19 @@ Emblem.Parser = (function() {
|
|
4434
4631
|
}
|
4435
4632
|
if (s0 === null) {
|
4436
4633
|
if (input.charCodeAt(peg$currPos) === 95) {
|
4437
|
-
s0 = peg$
|
4634
|
+
s0 = peg$c138;
|
4438
4635
|
peg$currPos++;
|
4439
4636
|
} else {
|
4440
4637
|
s0 = null;
|
4441
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4638
|
+
if (peg$silentFails === 0) { peg$fail(peg$c139); }
|
4442
4639
|
}
|
4443
4640
|
if (s0 === null) {
|
4444
4641
|
if (input.charCodeAt(peg$currPos) === 45) {
|
4445
|
-
s0 = peg$
|
4642
|
+
s0 = peg$c140;
|
4446
4643
|
peg$currPos++;
|
4447
4644
|
} else {
|
4448
4645
|
s0 = null;
|
4449
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4646
|
+
if (peg$silentFails === 0) { peg$fail(peg$c141); }
|
4450
4647
|
}
|
4451
4648
|
}
|
4452
4649
|
}
|
@@ -4460,17 +4657,17 @@ Emblem.Parser = (function() {
|
|
4460
4657
|
|
4461
4658
|
s0 = peg$currPos;
|
4462
4659
|
if (input.charCodeAt(peg$currPos) === 37) {
|
4463
|
-
s1 = peg$
|
4660
|
+
s1 = peg$c142;
|
4464
4661
|
peg$currPos++;
|
4465
4662
|
} else {
|
4466
4663
|
s1 = null;
|
4467
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4664
|
+
if (peg$silentFails === 0) { peg$fail(peg$c143); }
|
4468
4665
|
}
|
4469
4666
|
if (s1 !== null) {
|
4470
4667
|
s2 = peg$parsecssIdentifier();
|
4471
4668
|
if (s2 !== null) {
|
4472
4669
|
peg$reportedPos = s0;
|
4473
|
-
s1 = peg$
|
4670
|
+
s1 = peg$c93(s2);
|
4474
4671
|
if (s1 === null) {
|
4475
4672
|
peg$currPos = s0;
|
4476
4673
|
s0 = s1;
|
@@ -4494,17 +4691,17 @@ Emblem.Parser = (function() {
|
|
4494
4691
|
|
4495
4692
|
s0 = peg$currPos;
|
4496
4693
|
if (input.charCodeAt(peg$currPos) === 35) {
|
4497
|
-
s1 = peg$
|
4694
|
+
s1 = peg$c144;
|
4498
4695
|
peg$currPos++;
|
4499
4696
|
} else {
|
4500
4697
|
s1 = null;
|
4501
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4698
|
+
if (peg$silentFails === 0) { peg$fail(peg$c145); }
|
4502
4699
|
}
|
4503
4700
|
if (s1 !== null) {
|
4504
4701
|
s2 = peg$parsecssIdentifier();
|
4505
4702
|
if (s2 !== null) {
|
4506
4703
|
peg$reportedPos = s0;
|
4507
|
-
s1 = peg$
|
4704
|
+
s1 = peg$c146(s2);
|
4508
4705
|
if (s1 === null) {
|
4509
4706
|
peg$currPos = s0;
|
4510
4707
|
s0 = s1;
|
@@ -4538,7 +4735,7 @@ Emblem.Parser = (function() {
|
|
4538
4735
|
s2 = peg$parsecssIdentifier();
|
4539
4736
|
if (s2 !== null) {
|
4540
4737
|
peg$reportedPos = s0;
|
4541
|
-
s1 = peg$
|
4738
|
+
s1 = peg$c93(s2);
|
4542
4739
|
if (s1 === null) {
|
4543
4740
|
peg$currPos = s0;
|
4544
4741
|
s0 = s1;
|
@@ -4565,7 +4762,7 @@ Emblem.Parser = (function() {
|
|
4565
4762
|
peg$silentFails--;
|
4566
4763
|
if (s0 === null) {
|
4567
4764
|
s1 = null;
|
4568
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4765
|
+
if (peg$silentFails === 0) { peg$fail(peg$c147); }
|
4569
4766
|
}
|
4570
4767
|
|
4571
4768
|
return s0;
|
@@ -4590,7 +4787,7 @@ Emblem.Parser = (function() {
|
|
4590
4787
|
s2 = s3;
|
4591
4788
|
if (s2 !== null) {
|
4592
4789
|
peg$reportedPos = s0;
|
4593
|
-
s1 = peg$
|
4790
|
+
s1 = peg$c148(s1,s2);
|
4594
4791
|
if (s1 === null) {
|
4595
4792
|
peg$currPos = s0;
|
4596
4793
|
s0 = s1;
|
@@ -4612,12 +4809,12 @@ Emblem.Parser = (function() {
|
|
4612
4809
|
function peg$parsenmchar() {
|
4613
4810
|
var s0;
|
4614
4811
|
|
4615
|
-
if (peg$
|
4812
|
+
if (peg$c149.test(input.charAt(peg$currPos))) {
|
4616
4813
|
s0 = input.charAt(peg$currPos);
|
4617
4814
|
peg$currPos++;
|
4618
4815
|
} else {
|
4619
4816
|
s0 = null;
|
4620
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4817
|
+
if (peg$silentFails === 0) { peg$fail(peg$c150); }
|
4621
4818
|
}
|
4622
4819
|
if (s0 === null) {
|
4623
4820
|
s0 = peg$parsenonascii();
|
@@ -4629,12 +4826,12 @@ Emblem.Parser = (function() {
|
|
4629
4826
|
function peg$parsenmstart() {
|
4630
4827
|
var s0;
|
4631
4828
|
|
4632
|
-
if (peg$
|
4829
|
+
if (peg$c151.test(input.charAt(peg$currPos))) {
|
4633
4830
|
s0 = input.charAt(peg$currPos);
|
4634
4831
|
peg$currPos++;
|
4635
4832
|
} else {
|
4636
4833
|
s0 = null;
|
4637
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4834
|
+
if (peg$silentFails === 0) { peg$fail(peg$c152); }
|
4638
4835
|
}
|
4639
4836
|
if (s0 === null) {
|
4640
4837
|
s0 = peg$parsenonascii();
|
@@ -4646,12 +4843,12 @@ Emblem.Parser = (function() {
|
|
4646
4843
|
function peg$parsenonascii() {
|
4647
4844
|
var s0;
|
4648
4845
|
|
4649
|
-
if (peg$
|
4846
|
+
if (peg$c153.test(input.charAt(peg$currPos))) {
|
4650
4847
|
s0 = input.charAt(peg$currPos);
|
4651
4848
|
peg$currPos++;
|
4652
4849
|
} else {
|
4653
4850
|
s0 = null;
|
4654
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4851
|
+
if (peg$silentFails === 0) { peg$fail(peg$c154); }
|
4655
4852
|
}
|
4656
4853
|
|
4657
4854
|
return s0;
|
@@ -4685,11 +4882,11 @@ Emblem.Parser = (function() {
|
|
4685
4882
|
peg$silentFails++;
|
4686
4883
|
s0 = peg$currPos;
|
4687
4884
|
if (input.charCodeAt(peg$currPos) === 37) {
|
4688
|
-
s1 = peg$
|
4885
|
+
s1 = peg$c142;
|
4689
4886
|
peg$currPos++;
|
4690
4887
|
} else {
|
4691
4888
|
s1 = null;
|
4692
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4889
|
+
if (peg$silentFails === 0) { peg$fail(peg$c143); }
|
4693
4890
|
}
|
4694
4891
|
if (s1 !== null) {
|
4695
4892
|
s2 = peg$parsetagString();
|
@@ -4716,7 +4913,7 @@ Emblem.Parser = (function() {
|
|
4716
4913
|
peg$silentFails--;
|
4717
4914
|
if (s0 === null) {
|
4718
4915
|
s1 = null;
|
4719
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4916
|
+
if (peg$silentFails === 0) { peg$fail(peg$c155); }
|
4720
4917
|
}
|
4721
4918
|
|
4722
4919
|
return s0;
|
@@ -4729,7 +4926,7 @@ Emblem.Parser = (function() {
|
|
4729
4926
|
s1 = peg$parsetagString();
|
4730
4927
|
if (s1 !== null) {
|
4731
4928
|
peg$reportedPos = peg$currPos;
|
4732
|
-
s2 = peg$
|
4929
|
+
s2 = peg$c156(s1);
|
4733
4930
|
if (s2) {
|
4734
4931
|
s2 = peg$c1;
|
4735
4932
|
} else {
|
@@ -4737,7 +4934,7 @@ Emblem.Parser = (function() {
|
|
4737
4934
|
}
|
4738
4935
|
if (s2 !== null) {
|
4739
4936
|
peg$reportedPos = s0;
|
4740
|
-
s1 = peg$
|
4937
|
+
s1 = peg$c157(s1);
|
4741
4938
|
if (s1 === null) {
|
4742
4939
|
peg$currPos = s0;
|
4743
4940
|
s0 = s1;
|
@@ -4759,12 +4956,12 @@ Emblem.Parser = (function() {
|
|
4759
4956
|
function peg$parsetagChar() {
|
4760
4957
|
var s0;
|
4761
4958
|
|
4762
|
-
if (peg$
|
4959
|
+
if (peg$c158.test(input.charAt(peg$currPos))) {
|
4763
4960
|
s0 = input.charAt(peg$currPos);
|
4764
4961
|
peg$currPos++;
|
4765
4962
|
} else {
|
4766
4963
|
s0 = null;
|
4767
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
4964
|
+
if (peg$silentFails === 0) { peg$fail(peg$c159); }
|
4768
4965
|
}
|
4769
4966
|
|
4770
4967
|
return s0;
|
@@ -4778,7 +4975,7 @@ Emblem.Parser = (function() {
|
|
4778
4975
|
s1 = peg$parsetagString();
|
4779
4976
|
if (s1 !== null) {
|
4780
4977
|
peg$reportedPos = peg$currPos;
|
4781
|
-
s2 = peg$
|
4978
|
+
s2 = peg$c161(s1);
|
4782
4979
|
if (s2) {
|
4783
4980
|
s2 = peg$c1;
|
4784
4981
|
} else {
|
@@ -4786,7 +4983,7 @@ Emblem.Parser = (function() {
|
|
4786
4983
|
}
|
4787
4984
|
if (s2 !== null) {
|
4788
4985
|
peg$reportedPos = s0;
|
4789
|
-
s1 = peg$
|
4986
|
+
s1 = peg$c157(s1);
|
4790
4987
|
if (s1 === null) {
|
4791
4988
|
peg$currPos = s0;
|
4792
4989
|
s0 = s1;
|
@@ -4804,7 +5001,7 @@ Emblem.Parser = (function() {
|
|
4804
5001
|
peg$silentFails--;
|
4805
5002
|
if (s0 === null) {
|
4806
5003
|
s1 = null;
|
4807
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5004
|
+
if (peg$silentFails === 0) { peg$fail(peg$c160); }
|
4808
5005
|
}
|
4809
5006
|
|
4810
5007
|
return s0;
|
@@ -4844,15 +5041,15 @@ Emblem.Parser = (function() {
|
|
4844
5041
|
peg$silentFails++;
|
4845
5042
|
s0 = peg$currPos;
|
4846
5043
|
if (input.charCodeAt(peg$currPos) === 61423) {
|
4847
|
-
s1 = peg$
|
5044
|
+
s1 = peg$c163;
|
4848
5045
|
peg$currPos++;
|
4849
5046
|
} else {
|
4850
5047
|
s1 = null;
|
4851
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5048
|
+
if (peg$silentFails === 0) { peg$fail(peg$c164); }
|
4852
5049
|
}
|
4853
5050
|
if (s1 !== null) {
|
4854
5051
|
peg$reportedPos = s0;
|
4855
|
-
s1 = peg$
|
5052
|
+
s1 = peg$c165();
|
4856
5053
|
}
|
4857
5054
|
if (s1 === null) {
|
4858
5055
|
peg$currPos = s0;
|
@@ -4863,7 +5060,7 @@ Emblem.Parser = (function() {
|
|
4863
5060
|
peg$silentFails--;
|
4864
5061
|
if (s0 === null) {
|
4865
5062
|
s1 = null;
|
4866
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5063
|
+
if (peg$silentFails === 0) { peg$fail(peg$c162); }
|
4867
5064
|
}
|
4868
5065
|
|
4869
5066
|
return s0;
|
@@ -4875,15 +5072,15 @@ Emblem.Parser = (function() {
|
|
4875
5072
|
peg$silentFails++;
|
4876
5073
|
s0 = peg$currPos;
|
4877
5074
|
if (input.charCodeAt(peg$currPos) === 61438) {
|
4878
|
-
s1 = peg$
|
5075
|
+
s1 = peg$c167;
|
4879
5076
|
peg$currPos++;
|
4880
5077
|
} else {
|
4881
5078
|
s1 = null;
|
4882
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5079
|
+
if (peg$silentFails === 0) { peg$fail(peg$c168); }
|
4883
5080
|
}
|
4884
5081
|
if (s1 !== null) {
|
4885
5082
|
peg$reportedPos = s0;
|
4886
|
-
s1 = peg$
|
5083
|
+
s1 = peg$c165();
|
4887
5084
|
}
|
4888
5085
|
if (s1 === null) {
|
4889
5086
|
peg$currPos = s0;
|
@@ -4894,7 +5091,7 @@ Emblem.Parser = (function() {
|
|
4894
5091
|
peg$silentFails--;
|
4895
5092
|
if (s0 === null) {
|
4896
5093
|
s1 = null;
|
4897
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5094
|
+
if (peg$silentFails === 0) { peg$fail(peg$c166); }
|
4898
5095
|
}
|
4899
5096
|
|
4900
5097
|
return s0;
|
@@ -4906,15 +5103,15 @@ Emblem.Parser = (function() {
|
|
4906
5103
|
peg$silentFails++;
|
4907
5104
|
s0 = peg$currPos;
|
4908
5105
|
if (input.charCodeAt(peg$currPos) === 61422) {
|
4909
|
-
s1 = peg$
|
5106
|
+
s1 = peg$c170;
|
4910
5107
|
peg$currPos++;
|
4911
5108
|
} else {
|
4912
5109
|
s1 = null;
|
4913
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5110
|
+
if (peg$silentFails === 0) { peg$fail(peg$c171); }
|
4914
5111
|
}
|
4915
5112
|
if (s1 !== null) {
|
4916
5113
|
peg$reportedPos = s0;
|
4917
|
-
s1 = peg$
|
5114
|
+
s1 = peg$c165();
|
4918
5115
|
}
|
4919
5116
|
if (s1 === null) {
|
4920
5117
|
peg$currPos = s0;
|
@@ -4925,7 +5122,7 @@ Emblem.Parser = (function() {
|
|
4925
5122
|
peg$silentFails--;
|
4926
5123
|
if (s0 === null) {
|
4927
5124
|
s1 = null;
|
4928
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5125
|
+
if (peg$silentFails === 0) { peg$fail(peg$c169); }
|
4929
5126
|
}
|
4930
5127
|
|
4931
5128
|
return s0;
|
@@ -4937,19 +5134,19 @@ Emblem.Parser = (function() {
|
|
4937
5134
|
peg$silentFails++;
|
4938
5135
|
s0 = peg$currPos;
|
4939
5136
|
if (input.charCodeAt(peg$currPos) === 61439) {
|
4940
|
-
s1 = peg$
|
5137
|
+
s1 = peg$c173;
|
4941
5138
|
peg$currPos++;
|
4942
5139
|
} else {
|
4943
5140
|
s1 = null;
|
4944
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5141
|
+
if (peg$silentFails === 0) { peg$fail(peg$c174); }
|
4945
5142
|
}
|
4946
5143
|
if (s1 !== null) {
|
4947
5144
|
if (input.charCodeAt(peg$currPos) === 10) {
|
4948
|
-
s2 = peg$
|
5145
|
+
s2 = peg$c175;
|
4949
5146
|
peg$currPos++;
|
4950
5147
|
} else {
|
4951
5148
|
s2 = null;
|
4952
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5149
|
+
if (peg$silentFails === 0) { peg$fail(peg$c176); }
|
4953
5150
|
}
|
4954
5151
|
if (s2 !== null) {
|
4955
5152
|
s1 = [s1, s2];
|
@@ -4965,7 +5162,7 @@ Emblem.Parser = (function() {
|
|
4965
5162
|
peg$silentFails--;
|
4966
5163
|
if (s0 === null) {
|
4967
5164
|
s1 = null;
|
4968
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5165
|
+
if (peg$silentFails === 0) { peg$fail(peg$c172); }
|
4969
5166
|
}
|
4970
5167
|
|
4971
5168
|
return s0;
|
@@ -4982,7 +5179,7 @@ Emblem.Parser = (function() {
|
|
4982
5179
|
peg$silentFails--;
|
4983
5180
|
if (s0 === null) {
|
4984
5181
|
s1 = null;
|
4985
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5182
|
+
if (peg$silentFails === 0) { peg$fail(peg$c177); }
|
4986
5183
|
}
|
4987
5184
|
|
4988
5185
|
return s0;
|
@@ -5010,7 +5207,7 @@ Emblem.Parser = (function() {
|
|
5010
5207
|
peg$silentFails--;
|
5011
5208
|
if (s0 === null) {
|
5012
5209
|
s1 = null;
|
5013
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5210
|
+
if (peg$silentFails === 0) { peg$fail(peg$c178); }
|
5014
5211
|
}
|
5015
5212
|
|
5016
5213
|
return s0;
|
@@ -5029,7 +5226,7 @@ Emblem.Parser = (function() {
|
|
5029
5226
|
peg$silentFails--;
|
5030
5227
|
if (s0 === null) {
|
5031
5228
|
s1 = null;
|
5032
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5229
|
+
if (peg$silentFails === 0) { peg$fail(peg$c179); }
|
5033
5230
|
}
|
5034
5231
|
|
5035
5232
|
return s0;
|
@@ -5039,17 +5236,17 @@ Emblem.Parser = (function() {
|
|
5039
5236
|
var s0, s1;
|
5040
5237
|
|
5041
5238
|
peg$silentFails++;
|
5042
|
-
if (peg$
|
5239
|
+
if (peg$c181.test(input.charAt(peg$currPos))) {
|
5043
5240
|
s0 = input.charAt(peg$currPos);
|
5044
5241
|
peg$currPos++;
|
5045
5242
|
} else {
|
5046
5243
|
s0 = null;
|
5047
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5244
|
+
if (peg$silentFails === 0) { peg$fail(peg$c182); }
|
5048
5245
|
}
|
5049
5246
|
peg$silentFails--;
|
5050
5247
|
if (s0 === null) {
|
5051
5248
|
s1 = null;
|
5052
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5249
|
+
if (peg$silentFails === 0) { peg$fail(peg$c180); }
|
5053
5250
|
}
|
5054
5251
|
|
5055
5252
|
return s0;
|
@@ -5081,11 +5278,11 @@ Emblem.Parser = (function() {
|
|
5081
5278
|
peg$currPos++;
|
5082
5279
|
} else {
|
5083
5280
|
s2 = null;
|
5084
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
5281
|
+
if (peg$silentFails === 0) { peg$fail(peg$c92); }
|
5085
5282
|
}
|
5086
5283
|
if (s2 !== null) {
|
5087
5284
|
peg$reportedPos = s0;
|
5088
|
-
s1 = peg$
|
5285
|
+
s1 = peg$c93(s2);
|
5089
5286
|
if (s1 === null) {
|
5090
5287
|
peg$currPos = s0;
|
5091
5288
|
s0 = s1;
|