Comparing version 0.1.5 to 0.1.6
@@ -83,4 +83,4 @@ module.exports = (function() { | ||
}, | ||
peg$c8 = function(ident, val) { | ||
return m.buildContent(ident, val); | ||
peg$c8 = function(ident, string) { | ||
return m.buildContent(ident, m.fixEscapedChars(string)); | ||
}, | ||
@@ -93,62 +93,59 @@ peg$c9 = function(ident, val) { | ||
}, | ||
peg$c11 = function(name, val) { | ||
return [name, val]; | ||
peg$c11 = function(string) { | ||
return m.fixEscapedChars(string); | ||
}, | ||
peg$c12 = { type: "other", description: "string" }, | ||
peg$c13 = "'", | ||
peg$c14 = { type: "literal", value: "'", description: "\"'\"" }, | ||
peg$c12 = function(name, string) { | ||
return [name, m.fixEscapedChars(string)]; | ||
}, | ||
peg$c13 = { type: "other", description: "string" }, | ||
peg$c14 = { type: "any", description: "any character" }, | ||
peg$c15 = "\\", | ||
peg$c16 = { type: "literal", value: "\\", description: "\"\\\\\"" }, | ||
peg$c17 = function(seq) { | ||
return seq; | ||
}, | ||
peg$c18 = /^[ -&(-[\u2000-\uFFFF\u10000-\u1F9FF]/, | ||
peg$c19 = { type: "class", value: "[\\u0020-\\u0026\\u0028-\\u005B\\u2000-\\uFFFF\\u10000-\\u1F9FF]", description: "[\\u0020-\\u0026\\u0028-\\u005B\\u2000-\\uFFFF\\u10000-\\u1F9FF]" }, | ||
peg$c20 = /^[ -\u10FFFF]/, | ||
peg$c21 = { type: "class", value: "[\\x20-\\u10FFFF]", description: "[\\x20-\\u10FFFF]" }, | ||
peg$c22 = { type: "other", description: "Letter A-Z" }, | ||
peg$c23 = /^[a-zA-Z]/, | ||
peg$c24 = { type: "class", value: "[a-zA-Z]", description: "[a-zA-Z]" }, | ||
peg$c25 = { type: "other", description: "Letter A-Z or - _" }, | ||
peg$c26 = /^[a-zA-Z0-9\-_]/, | ||
peg$c27 = { type: "class", value: "[a-zA-Z0-9-_]", description: "[a-zA-Z0-9-_]" }, | ||
peg$c28 = /^[ -~]/, | ||
peg$c29 = { type: "class", value: "[ -~]", description: "[ -~]" }, | ||
peg$c30 = /^[!-&(-<>-~]/, | ||
peg$c31 = { type: "class", value: "[!-&(-<>-~]", description: "[!-&(-<>-~]" }, | ||
peg$c32 = /^[ -&(-~]/, | ||
peg$c33 = { type: "class", value: "[ -&(-~]", description: "[ -&(-~]" }, | ||
peg$c34 = { type: "other", description: "Whitespace" }, | ||
peg$c35 = { type: "other", description: "Extended whitespace" }, | ||
peg$c36 = /^[ \t]/, | ||
peg$c37 = { type: "class", value: "[ \\t]", description: "[ \\t]" }, | ||
peg$c38 = { type: "other", description: "Line feed" }, | ||
peg$c39 = /^[\n]/, | ||
peg$c40 = { type: "class", value: "[\\n]", description: "[\\n]" }, | ||
peg$c41 = { type: "other", description: "Carriage return" }, | ||
peg$c42 = /^[\r]/, | ||
peg$c43 = { type: "class", value: "[\\r]", description: "[\\r]" }, | ||
peg$c44 = { type: "other", description: "Newline either windows or *nix" }, | ||
peg$c45 = { type: "other", description: "#" }, | ||
peg$c46 = "#", | ||
peg$c47 = { type: "literal", value: "#", description: "\"#\"" }, | ||
peg$c48 = { type: "other", description: "Backtick character" }, | ||
peg$c49 = "`", | ||
peg$c50 = { type: "literal", value: "`", description: "\"`\"" }, | ||
peg$c51 = "+", | ||
peg$c52 = { type: "literal", value: "+", description: "\"+\"" }, | ||
peg$c53 = { type: "other", description: "Equals sign" }, | ||
peg$c54 = "=", | ||
peg$c55 = { type: "literal", value: "=", description: "\"=\"" }, | ||
peg$c56 = { type: "other", description: "Single quote character" }, | ||
peg$c57 = { type: "other", description: "Question mark" }, | ||
peg$c58 = "?", | ||
peg$c59 = { type: "literal", value: "?", description: "\"?\"" }, | ||
peg$c60 = "-", | ||
peg$c61 = { type: "literal", value: "-", description: "\"-\"" }, | ||
peg$c62 = { type: "other", description: "Exclamation mark." }, | ||
peg$c63 = "!", | ||
peg$c64 = { type: "literal", value: "!", description: "\"!\"" }, | ||
peg$c65 = ".", | ||
peg$c66 = { type: "literal", value: ".", description: "\".\"" }, | ||
peg$c17 = { type: "other", description: "Letter A-Z" }, | ||
peg$c18 = /^[a-zA-Z]/, | ||
peg$c19 = { type: "class", value: "[a-zA-Z]", description: "[a-zA-Z]" }, | ||
peg$c20 = { type: "other", description: "Letter A-Z or - _" }, | ||
peg$c21 = /^[a-zA-Z0-9\-_]/, | ||
peg$c22 = { type: "class", value: "[a-zA-Z0-9-_]", description: "[a-zA-Z0-9-_]" }, | ||
peg$c23 = /^[ -~]/, | ||
peg$c24 = { type: "class", value: "[ -~]", description: "[ -~]" }, | ||
peg$c25 = /^[!-&(-<>-~]/, | ||
peg$c26 = { type: "class", value: "[!-&(-<>-~]", description: "[!-&(-<>-~]" }, | ||
peg$c27 = /^[ -&(-~]/, | ||
peg$c28 = { type: "class", value: "[ -&(-~]", description: "[ -&(-~]" }, | ||
peg$c29 = { type: "other", description: "Whitespace" }, | ||
peg$c30 = { type: "other", description: "Extended whitespace" }, | ||
peg$c31 = /^[ \t]/, | ||
peg$c32 = { type: "class", value: "[ \\t]", description: "[ \\t]" }, | ||
peg$c33 = { type: "other", description: "Line feed" }, | ||
peg$c34 = /^[\n]/, | ||
peg$c35 = { type: "class", value: "[\\n]", description: "[\\n]" }, | ||
peg$c36 = { type: "other", description: "Carriage return" }, | ||
peg$c37 = /^[\r]/, | ||
peg$c38 = { type: "class", value: "[\\r]", description: "[\\r]" }, | ||
peg$c39 = { type: "other", description: "Newline either windows or *nix" }, | ||
peg$c40 = { type: "other", description: "#" }, | ||
peg$c41 = "#", | ||
peg$c42 = { type: "literal", value: "#", description: "\"#\"" }, | ||
peg$c43 = { type: "other", description: "Backtick character" }, | ||
peg$c44 = "`", | ||
peg$c45 = { type: "literal", value: "`", description: "\"`\"" }, | ||
peg$c46 = "+", | ||
peg$c47 = { type: "literal", value: "+", description: "\"+\"" }, | ||
peg$c48 = { type: "other", description: "Equals sign" }, | ||
peg$c49 = "=", | ||
peg$c50 = { type: "literal", value: "=", description: "\"=\"" }, | ||
peg$c51 = { type: "other", description: "Single quote character" }, | ||
peg$c52 = "'", | ||
peg$c53 = { type: "literal", value: "'", description: "\"'\"" }, | ||
peg$c54 = { type: "other", description: "Question mark" }, | ||
peg$c55 = "?", | ||
peg$c56 = { type: "literal", value: "?", description: "\"?\"" }, | ||
peg$c57 = "-", | ||
peg$c58 = { type: "literal", value: "-", description: "\"-\"" }, | ||
peg$c59 = { type: "other", description: "Exclamation mark." }, | ||
peg$c60 = "!", | ||
peg$c61 = { type: "literal", value: "!", description: "\"!\"" }, | ||
peg$c62 = ".", | ||
peg$c63 = { type: "literal", value: ".", description: "\".\"" }, | ||
@@ -760,3 +757,3 @@ peg$currPos = 0, | ||
peg$savedPos = s0; | ||
s1 = peg$c10(s4); | ||
s1 = peg$c11(s4); | ||
s0 = s1; | ||
@@ -808,3 +805,3 @@ } else { | ||
peg$savedPos = s0; | ||
s1 = peg$c10(s4); | ||
s1 = peg$c11(s4); | ||
s0 = s1; | ||
@@ -906,3 +903,3 @@ } else { | ||
peg$savedPos = s0; | ||
s1 = peg$c11(s2, s4); | ||
s1 = peg$c12(s2, s4); | ||
s0 = s1; | ||
@@ -956,3 +953,3 @@ } else { | ||
peg$savedPos = s0; | ||
s1 = peg$c10(s5); | ||
s1 = peg$c11(s5); | ||
s0 = s1; | ||
@@ -988,27 +985,15 @@ } else { | ||
function peg$parseSTRING() { | ||
var s0, s1, s2, s3; | ||
var s0, s1; | ||
peg$silentFails++; | ||
s0 = peg$currPos; | ||
s1 = peg$currPos; | ||
s2 = []; | ||
s3 = peg$parseCHAR(); | ||
while (s3 !== peg$FAILED) { | ||
s2.push(s3); | ||
s3 = peg$parseCHAR(); | ||
s0 = []; | ||
s1 = peg$parseCHAR(); | ||
while (s1 !== peg$FAILED) { | ||
s0.push(s1); | ||
s1 = peg$parseCHAR(); | ||
} | ||
if (s2 !== peg$FAILED) { | ||
s1 = input.substring(s1, peg$currPos); | ||
} else { | ||
s1 = s2; | ||
} | ||
if (s1 !== peg$FAILED) { | ||
peg$savedPos = s0; | ||
s1 = peg$c10(s1); | ||
} | ||
s0 = s1; | ||
peg$silentFails--; | ||
if (s0 === peg$FAILED) { | ||
s1 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c12); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c13); } | ||
} | ||
@@ -1020,5 +1005,19 @@ | ||
function peg$parseCHAR() { | ||
var s0, s1, s2; | ||
var s0, s1, s2, s3; | ||
s0 = peg$parseUNESCAPED(); | ||
s0 = peg$currPos; | ||
s1 = peg$parseESCAPE(); | ||
if (s1 !== peg$FAILED) { | ||
s2 = peg$parseCHAR_SQ(); | ||
if (s2 !== peg$FAILED) { | ||
s1 = [s1, s2]; | ||
s0 = s1; | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$FAILED; | ||
} | ||
if (s0 === peg$FAILED) { | ||
@@ -1028,22 +1027,56 @@ s0 = peg$currPos; | ||
if (s1 !== peg$FAILED) { | ||
if (input.charCodeAt(peg$currPos) === 39) { | ||
s2 = peg$c13; | ||
peg$currPos++; | ||
s2 = peg$parseESCAPE(); | ||
if (s2 !== peg$FAILED) { | ||
s1 = [s1, s2]; | ||
s0 = s1; | ||
} else { | ||
s2 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c14); } | ||
peg$currPos = s0; | ||
s0 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$FAILED; | ||
} | ||
if (s0 === peg$FAILED) { | ||
s0 = peg$currPos; | ||
s1 = peg$currPos; | ||
peg$silentFails++; | ||
s2 = peg$parseCHAR_SQ(); | ||
peg$silentFails--; | ||
if (s2 === peg$FAILED) { | ||
if (input.charCodeAt(peg$currPos) === 92) { | ||
s2 = peg$c15; | ||
peg$currPos++; | ||
s1 = void 0; | ||
} else { | ||
peg$currPos = s1; | ||
s1 = peg$FAILED; | ||
} | ||
if (s1 !== peg$FAILED) { | ||
s2 = peg$currPos; | ||
peg$silentFails++; | ||
s3 = peg$parseESCAPE(); | ||
peg$silentFails--; | ||
if (s3 === peg$FAILED) { | ||
s2 = void 0; | ||
} else { | ||
peg$currPos = s2; | ||
s2 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c16); } | ||
} | ||
} | ||
if (s2 !== peg$FAILED) { | ||
peg$savedPos = s0; | ||
s1 = peg$c17(s2); | ||
s0 = s1; | ||
if (s2 !== peg$FAILED) { | ||
if (input.length > peg$currPos) { | ||
s3 = input.charAt(peg$currPos); | ||
peg$currPos++; | ||
} else { | ||
s3 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c14); } | ||
} | ||
if (s3 !== peg$FAILED) { | ||
s1 = [s1, s2, s3]; | ||
s0 = s1; | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$FAILED; | ||
} | ||
} else { | ||
@@ -1053,5 +1086,2 @@ peg$currPos = s0; | ||
} | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$FAILED; | ||
} | ||
@@ -1077,25 +1107,34 @@ } | ||
function peg$parseUNESCAPED() { | ||
var s0; | ||
function peg$parseUNICODE() { | ||
var s0, s1, s2; | ||
if (peg$c18.test(input.charAt(peg$currPos))) { | ||
s0 = input.charAt(peg$currPos); | ||
peg$currPos++; | ||
s0 = peg$currPos; | ||
s1 = peg$currPos; | ||
peg$silentFails++; | ||
s2 = peg$parseNL(); | ||
peg$silentFails--; | ||
if (s2 === peg$FAILED) { | ||
s1 = void 0; | ||
} else { | ||
s0 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c19); } | ||
peg$currPos = s1; | ||
s1 = peg$FAILED; | ||
} | ||
return s0; | ||
} | ||
function peg$parseUNICODE() { | ||
var s0; | ||
if (peg$c20.test(input.charAt(peg$currPos))) { | ||
s0 = input.charAt(peg$currPos); | ||
peg$currPos++; | ||
if (s1 !== peg$FAILED) { | ||
if (input.length > peg$currPos) { | ||
s2 = input.charAt(peg$currPos); | ||
peg$currPos++; | ||
} else { | ||
s2 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c14); } | ||
} | ||
if (s2 !== peg$FAILED) { | ||
s1 = [s1, s2]; | ||
s0 = s1; | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c21); } | ||
} | ||
@@ -1146,3 +1185,3 @@ | ||
peg$silentFails++; | ||
if (peg$c23.test(input.charAt(peg$currPos))) { | ||
if (peg$c18.test(input.charAt(peg$currPos))) { | ||
s0 = input.charAt(peg$currPos); | ||
@@ -1152,3 +1191,3 @@ peg$currPos++; | ||
s0 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c24); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c19); } | ||
} | ||
@@ -1158,3 +1197,3 @@ peg$silentFails--; | ||
s1 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c22); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c17); } | ||
} | ||
@@ -1169,3 +1208,3 @@ | ||
peg$silentFails++; | ||
if (peg$c26.test(input.charAt(peg$currPos))) { | ||
if (peg$c21.test(input.charAt(peg$currPos))) { | ||
s0 = input.charAt(peg$currPos); | ||
@@ -1175,3 +1214,3 @@ peg$currPos++; | ||
s0 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c27); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c22); } | ||
} | ||
@@ -1181,3 +1220,3 @@ peg$silentFails--; | ||
s1 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c25); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c20); } | ||
} | ||
@@ -1191,3 +1230,3 @@ | ||
if (peg$c28.test(input.charAt(peg$currPos))) { | ||
if (peg$c23.test(input.charAt(peg$currPos))) { | ||
s0 = input.charAt(peg$currPos); | ||
@@ -1197,3 +1236,3 @@ peg$currPos++; | ||
s0 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c29); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c24); } | ||
} | ||
@@ -1207,3 +1246,3 @@ | ||
if (peg$c30.test(input.charAt(peg$currPos))) { | ||
if (peg$c25.test(input.charAt(peg$currPos))) { | ||
s0 = input.charAt(peg$currPos); | ||
@@ -1213,3 +1252,3 @@ peg$currPos++; | ||
s0 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c31); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c26); } | ||
} | ||
@@ -1223,3 +1262,3 @@ | ||
if (peg$c32.test(input.charAt(peg$currPos))) { | ||
if (peg$c27.test(input.charAt(peg$currPos))) { | ||
s0 = input.charAt(peg$currPos); | ||
@@ -1229,3 +1268,3 @@ peg$currPos++; | ||
s0 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c33); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c28); } | ||
} | ||
@@ -1244,3 +1283,3 @@ | ||
s1 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c34); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c29); } | ||
} | ||
@@ -1281,3 +1320,3 @@ | ||
s1 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c35); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c30); } | ||
} | ||
@@ -1292,3 +1331,3 @@ | ||
peg$silentFails++; | ||
if (peg$c36.test(input.charAt(peg$currPos))) { | ||
if (peg$c31.test(input.charAt(peg$currPos))) { | ||
s0 = input.charAt(peg$currPos); | ||
@@ -1298,3 +1337,3 @@ peg$currPos++; | ||
s0 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c37); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c32); } | ||
} | ||
@@ -1304,3 +1343,3 @@ peg$silentFails--; | ||
s1 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c34); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c29); } | ||
} | ||
@@ -1315,3 +1354,3 @@ | ||
peg$silentFails++; | ||
if (peg$c39.test(input.charAt(peg$currPos))) { | ||
if (peg$c34.test(input.charAt(peg$currPos))) { | ||
s0 = input.charAt(peg$currPos); | ||
@@ -1321,3 +1360,3 @@ peg$currPos++; | ||
s0 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c40); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c35); } | ||
} | ||
@@ -1327,3 +1366,3 @@ peg$silentFails--; | ||
s1 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c38); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c33); } | ||
} | ||
@@ -1338,3 +1377,3 @@ | ||
peg$silentFails++; | ||
if (peg$c42.test(input.charAt(peg$currPos))) { | ||
if (peg$c37.test(input.charAt(peg$currPos))) { | ||
s0 = input.charAt(peg$currPos); | ||
@@ -1344,3 +1383,3 @@ peg$currPos++; | ||
s0 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c43); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c38); } | ||
} | ||
@@ -1350,3 +1389,3 @@ peg$silentFails--; | ||
s1 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c41); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c36); } | ||
} | ||
@@ -1382,3 +1421,3 @@ | ||
s1 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c44); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c39); } | ||
} | ||
@@ -1394,7 +1433,7 @@ | ||
if (input.charCodeAt(peg$currPos) === 35) { | ||
s0 = peg$c46; | ||
s0 = peg$c41; | ||
peg$currPos++; | ||
} else { | ||
s0 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c47); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c42); } | ||
} | ||
@@ -1404,3 +1443,3 @@ peg$silentFails--; | ||
s1 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c45); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c40); } | ||
} | ||
@@ -1416,7 +1455,7 @@ | ||
if (input.charCodeAt(peg$currPos) === 96) { | ||
s0 = peg$c49; | ||
s0 = peg$c44; | ||
peg$currPos++; | ||
} else { | ||
s0 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c50); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c45); } | ||
} | ||
@@ -1426,3 +1465,3 @@ peg$silentFails--; | ||
s1 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c48); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c43); } | ||
} | ||
@@ -1437,7 +1476,7 @@ | ||
if (input.charCodeAt(peg$currPos) === 43) { | ||
s0 = peg$c51; | ||
s0 = peg$c46; | ||
peg$currPos++; | ||
} else { | ||
s0 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c52); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c47); } | ||
} | ||
@@ -1453,7 +1492,7 @@ | ||
if (input.charCodeAt(peg$currPos) === 61) { | ||
s0 = peg$c54; | ||
s0 = peg$c49; | ||
peg$currPos++; | ||
} else { | ||
s0 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c55); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c50); } | ||
} | ||
@@ -1463,3 +1502,3 @@ peg$silentFails--; | ||
s1 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c53); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c48); } | ||
} | ||
@@ -1475,7 +1514,7 @@ | ||
if (input.charCodeAt(peg$currPos) === 39) { | ||
s0 = peg$c13; | ||
s0 = peg$c52; | ||
peg$currPos++; | ||
} else { | ||
s0 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c14); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c53); } | ||
} | ||
@@ -1485,3 +1524,3 @@ peg$silentFails--; | ||
s1 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c56); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c51); } | ||
} | ||
@@ -1497,7 +1536,7 @@ | ||
if (input.charCodeAt(peg$currPos) === 63) { | ||
s0 = peg$c58; | ||
s0 = peg$c55; | ||
peg$currPos++; | ||
} else { | ||
s0 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c59); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c56); } | ||
} | ||
@@ -1507,3 +1546,3 @@ peg$silentFails--; | ||
s1 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c57); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c54); } | ||
} | ||
@@ -1518,7 +1557,7 @@ | ||
if (input.charCodeAt(peg$currPos) === 45) { | ||
s0 = peg$c60; | ||
s0 = peg$c57; | ||
peg$currPos++; | ||
} else { | ||
s0 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c61); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c58); } | ||
} | ||
@@ -1534,7 +1573,7 @@ | ||
if (input.charCodeAt(peg$currPos) === 33) { | ||
s0 = peg$c63; | ||
s0 = peg$c60; | ||
peg$currPos++; | ||
} else { | ||
s0 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c64); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c61); } | ||
} | ||
@@ -1544,3 +1583,3 @@ peg$silentFails--; | ||
s1 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c62); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c59); } | ||
} | ||
@@ -1555,7 +1594,7 @@ | ||
if (input.charCodeAt(peg$currPos) === 46) { | ||
s0 = peg$c65; | ||
s0 = peg$c62; | ||
peg$currPos++; | ||
} else { | ||
s0 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c66); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c63); } | ||
} | ||
@@ -1721,2 +1760,8 @@ | ||
Manager.prototype.fixEscapedChars = function(val) { | ||
return val | ||
.replace('\\\'', '\'') | ||
.replace('\\\\', '\\'); | ||
} | ||
var m = new Manager(); | ||
@@ -1723,0 +1768,0 @@ |
{ | ||
"name": "candor", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "A new way to write HTML, elegantly.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
69755
1865