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

Function peg$parseIdentifierStart

lib/parser.js:3548–3596  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3546 }
3547
3548 function peg$parseIdentifierStart() {
3549 var s0, s1, s2;
3550
3551 s0 = peg$parseUnicodeLetter();
3552 if (s0 === peg$FAILED) {
3553 if (input.charCodeAt(peg$currPos) === 36) {
3554 s0 = peg$c116;
3555 peg$currPos++;
3556 } else {
3557 s0 = peg$FAILED;
3558 if (peg$silentFails === 0) { peg$fail(peg$c117); }
3559 }
3560 if (s0 === peg$FAILED) {
3561 if (input.charCodeAt(peg$currPos) === 95) {
3562 s0 = peg$c118;
3563 peg$currPos++;
3564 } else {
3565 s0 = peg$FAILED;
3566 if (peg$silentFails === 0) { peg$fail(peg$c119); }
3567 }
3568 if (s0 === peg$FAILED) {
3569 s0 = peg$currPos;
3570 if (input.charCodeAt(peg$currPos) === 92) {
3571 s1 = peg$c120;
3572 peg$currPos++;
3573 } else {
3574 s1 = peg$FAILED;
3575 if (peg$silentFails === 0) { peg$fail(peg$c121); }
3576 }
3577 if (s1 !== peg$FAILED) {
3578 s2 = peg$parseUnicodeEscapeSequence();
3579 if (s2 !== peg$FAILED) {
3580 peg$reportedPos = s0;
3581 s1 = peg$c122(s2);
3582 s0 = s1;
3583 } else {
3584 peg$currPos = s0;
3585 s0 = peg$c3;
3586 }
3587 } else {
3588 peg$currPos = s0;
3589 s0 = peg$c3;
3590 }
3591 }
3592 }
3593 }
3594
3595 return s0;
3596 }
3597
3598 function peg$parseIdentifierPart() {
3599 var s0;

Callers 2

peg$parseIdentifierNameFunction · 0.85
peg$parseIdentifierPartFunction · 0.85

Calls 4

peg$parseUnicodeLetterFunction · 0.85
peg$failFunction · 0.85
peg$c122Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…