MCPcopy Index your code
hub / github.com/pegjs/pegjs / peg$parseLineTerminatorSequence

Function peg$parseLineTerminatorSequence

lib/parser.js:1473–1527  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1471 }
1472
1473 function peg$parseLineTerminatorSequence() {
1474 var s0, s1;
1475
1476 peg$silentFails++;
1477 if (input.charCodeAt(peg$currPos) === 10) {
1478 s0 = peg$c51;
1479 peg$currPos++;
1480 } else {
1481 s0 = peg$FAILED;
1482 if (peg$silentFails === 0) { peg$fail(peg$c52); }
1483 }
1484 if (s0 === peg$FAILED) {
1485 if (input.substr(peg$currPos, 2) === peg$c53) {
1486 s0 = peg$c53;
1487 peg$currPos += 2;
1488 } else {
1489 s0 = peg$FAILED;
1490 if (peg$silentFails === 0) { peg$fail(peg$c54); }
1491 }
1492 if (s0 === peg$FAILED) {
1493 if (input.charCodeAt(peg$currPos) === 13) {
1494 s0 = peg$c55;
1495 peg$currPos++;
1496 } else {
1497 s0 = peg$FAILED;
1498 if (peg$silentFails === 0) { peg$fail(peg$c56); }
1499 }
1500 if (s0 === peg$FAILED) {
1501 if (input.charCodeAt(peg$currPos) === 8232) {
1502 s0 = peg$c57;
1503 peg$currPos++;
1504 } else {
1505 s0 = peg$FAILED;
1506 if (peg$silentFails === 0) { peg$fail(peg$c58); }
1507 }
1508 if (s0 === peg$FAILED) {
1509 if (input.charCodeAt(peg$currPos) === 8233) {
1510 s0 = peg$c59;
1511 peg$currPos++;
1512 } else {
1513 s0 = peg$FAILED;
1514 if (peg$silentFails === 0) { peg$fail(peg$c60); }
1515 }
1516 }
1517 }
1518 }
1519 }
1520 peg$silentFails--;
1521 if (s0 === peg$FAILED) {
1522 s1 = peg$FAILED;
1523 if (peg$silentFails === 0) { peg$fail(peg$c50); }
1524 }
1525
1526 return s0;
1527 }
1528
1529 function peg$parseComment() {
1530 var s0, s1;

Callers 3

peg$parse__Function · 0.85
peg$parseEOSFunction · 0.85

Calls 1

peg$failFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…