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

Function peg$parseSingleEscapeCharacter

lib/parser.js:4277–4397  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4275 }
4276
4277 function peg$parseSingleEscapeCharacter() {
4278 var s0, s1;
4279
4280 if (input.charCodeAt(peg$currPos) === 39) {
4281 s0 = peg$c71;
4282 peg$currPos++;
4283 } else {
4284 s0 = peg$FAILED;
4285 if (peg$silentFails === 0) { peg$fail(peg$c72); }
4286 }
4287 if (s0 === peg$FAILED) {
4288 if (input.charCodeAt(peg$currPos) === 34) {
4289 s0 = peg$c68;
4290 peg$currPos++;
4291 } else {
4292 s0 = peg$FAILED;
4293 if (peg$silentFails === 0) { peg$fail(peg$c69); }
4294 }
4295 if (s0 === peg$FAILED) {
4296 if (input.charCodeAt(peg$currPos) === 92) {
4297 s0 = peg$c120;
4298 peg$currPos++;
4299 } else {
4300 s0 = peg$FAILED;
4301 if (peg$silentFails === 0) { peg$fail(peg$c121); }
4302 }
4303 if (s0 === peg$FAILED) {
4304 s0 = peg$currPos;
4305 if (input.charCodeAt(peg$currPos) === 98) {
4306 s1 = peg$c139;
4307 peg$currPos++;
4308 } else {
4309 s1 = peg$FAILED;
4310 if (peg$silentFails === 0) { peg$fail(peg$c140); }
4311 }
4312 if (s1 !== peg$FAILED) {
4313 peg$reportedPos = s0;
4314 s1 = peg$c141();
4315 }
4316 s0 = s1;
4317 if (s0 === peg$FAILED) {
4318 s0 = peg$currPos;
4319 if (input.charCodeAt(peg$currPos) === 102) {
4320 s1 = peg$c142;
4321 peg$currPos++;
4322 } else {
4323 s1 = peg$FAILED;
4324 if (peg$silentFails === 0) { peg$fail(peg$c143); }
4325 }
4326 if (s1 !== peg$FAILED) {
4327 peg$reportedPos = s0;
4328 s1 = peg$c144();
4329 }
4330 s0 = s1;
4331 if (s0 === peg$FAILED) {
4332 s0 = peg$currPos;
4333 if (input.charCodeAt(peg$currPos) === 110) {
4334 s1 = peg$c145;

Callers 2

peg$parseEscapeCharacterFunction · 0.85

Calls 7

peg$failFunction · 0.85
peg$c141Function · 0.85
peg$c144Function · 0.85
peg$c147Function · 0.85
peg$c150Function · 0.85
peg$c153Function · 0.85
peg$c156Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…