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

Function peg$parseDefaultToken

lib/parser.js:6529–6564  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6527 }
6528
6529 function peg$parseDefaultToken() {
6530 var s0, s1, s2, s3;
6531
6532 s0 = peg$currPos;
6533 if (input.substr(peg$currPos, 7) === peg$c272) {
6534 s1 = peg$c272;
6535 peg$currPos += 7;
6536 } else {
6537 s1 = peg$FAILED;
6538 if (peg$silentFails === 0) { peg$fail(peg$c273); }
6539 }
6540 if (s1 !== peg$FAILED) {
6541 s2 = peg$currPos;
6542 peg$silentFails++;
6543 s3 = peg$parseIdentifierPart();
6544 peg$silentFails--;
6545 if (s3 === peg$FAILED) {
6546 s2 = peg$c5;
6547 } else {
6548 peg$currPos = s2;
6549 s2 = peg$c3;
6550 }
6551 if (s2 !== peg$FAILED) {
6552 s1 = [s1, s2];
6553 s0 = s1;
6554 } else {
6555 peg$currPos = s0;
6556 s0 = peg$c3;
6557 }
6558 } else {
6559 peg$currPos = s0;
6560 s0 = peg$c3;
6561 }
6562
6563 return s0;
6564 }
6565
6566 function peg$parseDeleteToken() {
6567 var s0, s1, s2, s3;

Callers 1

peg$parseKeywordFunction · 0.85

Calls 2

peg$failFunction · 0.85
peg$parseIdentifierPartFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…