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

Function peg$parseEscapeCharacter

lib/parser.js:4434–4461  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4432 }
4433
4434 function peg$parseEscapeCharacter() {
4435 var s0;
4436
4437 s0 = peg$parseSingleEscapeCharacter();
4438 if (s0 === peg$FAILED) {
4439 s0 = peg$parseDecimalDigit();
4440 if (s0 === peg$FAILED) {
4441 if (input.charCodeAt(peg$currPos) === 120) {
4442 s0 = peg$c157;
4443 peg$currPos++;
4444 } else {
4445 s0 = peg$FAILED;
4446 if (peg$silentFails === 0) { peg$fail(peg$c158); }
4447 }
4448 if (s0 === peg$FAILED) {
4449 if (input.charCodeAt(peg$currPos) === 117) {
4450 s0 = peg$c159;
4451 peg$currPos++;
4452 } else {
4453 s0 = peg$FAILED;
4454 if (peg$silentFails === 0) { peg$fail(peg$c160); }
4455 }
4456 }
4457 }
4458 }
4459
4460 return s0;
4461 }
4462
4463 function peg$parseHexEscapeSequence() {
4464 var s0, s1, s2, s3, s4, s5;

Callers 1

Calls 3

peg$parseDecimalDigitFunction · 0.85
peg$failFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…