MCPcopy Create free account
hub / github.com/codemix/htmling / peg$parseStringLiteral

Function peg$parseStringLiteral

lib/parser.js:3933–4034  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3931 }
3932
3933 function peg$parseStringLiteral() {
3934 var s0, s1, s2, s3, s4;
3935
3936 peg$silentFails++;
3937 s0 = peg$currPos;
3938 if (input.charCodeAt(peg$currPos) === 34) {
3939 s1 = peg$c68;
3940 peg$currPos++;
3941 } else {
3942 s1 = peg$FAILED;
3943 if (peg$silentFails === 0) { peg$fail(peg$c69); }
3944 }
3945 if (s1 !== peg$FAILED) {
3946 s2 = peg$currPos;
3947 s3 = [];
3948 s4 = peg$parseDoubleStringCharacter();
3949 while (s4 !== peg$FAILED) {
3950 s3.push(s4);
3951 s4 = peg$parseDoubleStringCharacter();
3952 }
3953 if (s3 !== peg$FAILED) {
3954 s3 = input.substring(s2, peg$currPos);
3955 }
3956 s2 = s3;
3957 if (s2 !== peg$FAILED) {
3958 if (input.charCodeAt(peg$currPos) === 34) {
3959 s3 = peg$c68;
3960 peg$currPos++;
3961 } else {
3962 s3 = peg$FAILED;
3963 if (peg$silentFails === 0) { peg$fail(peg$c69); }
3964 }
3965 if (s3 !== peg$FAILED) {
3966 peg$reportedPos = s0;
3967 s1 = peg$c132(s2);
3968 s0 = s1;
3969 } else {
3970 peg$currPos = s0;
3971 s0 = peg$c3;
3972 }
3973 } else {
3974 peg$currPos = s0;
3975 s0 = peg$c3;
3976 }
3977 } else {
3978 peg$currPos = s0;
3979 s0 = peg$c3;
3980 }
3981 if (s0 === peg$FAILED) {
3982 s0 = peg$currPos;
3983 if (input.charCodeAt(peg$currPos) === 39) {
3984 s1 = peg$c71;
3985 peg$currPos++;
3986 } else {
3987 s1 = peg$FAILED;
3988 if (peg$silentFails === 0) { peg$fail(peg$c72); }
3989 }
3990 if (s1 !== peg$FAILED) {

Callers 1

peg$parseLiteralFunction · 0.85

Calls 5

peg$failFunction · 0.85
peg$c132Function · 0.85
peg$c133Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…