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

Function peg$parseLineTerminatorSequence

lib/parser.js:3050–3104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3048 }
3049
3050 function peg$parseLineTerminatorSequence() {
3051 var s0, s1;
3052
3053 peg$silentFails++;
3054 if (input.charCodeAt(peg$currPos) === 10) {
3055 s0 = peg$c96;
3056 peg$currPos++;
3057 } else {
3058 s0 = peg$FAILED;
3059 if (peg$silentFails === 0) { peg$fail(peg$c97); }
3060 }
3061 if (s0 === peg$FAILED) {
3062 if (input.substr(peg$currPos, 2) === peg$c98) {
3063 s0 = peg$c98;
3064 peg$currPos += 2;
3065 } else {
3066 s0 = peg$FAILED;
3067 if (peg$silentFails === 0) { peg$fail(peg$c99); }
3068 }
3069 if (s0 === peg$FAILED) {
3070 if (input.charCodeAt(peg$currPos) === 13) {
3071 s0 = peg$c100;
3072 peg$currPos++;
3073 } else {
3074 s0 = peg$FAILED;
3075 if (peg$silentFails === 0) { peg$fail(peg$c101); }
3076 }
3077 if (s0 === peg$FAILED) {
3078 if (input.charCodeAt(peg$currPos) === 8232) {
3079 s0 = peg$c102;
3080 peg$currPos++;
3081 } else {
3082 s0 = peg$FAILED;
3083 if (peg$silentFails === 0) { peg$fail(peg$c103); }
3084 }
3085 if (s0 === peg$FAILED) {
3086 if (input.charCodeAt(peg$currPos) === 8233) {
3087 s0 = peg$c104;
3088 peg$currPos++;
3089 } else {
3090 s0 = peg$FAILED;
3091 if (peg$silentFails === 0) { peg$fail(peg$c105); }
3092 }
3093 }
3094 }
3095 }
3096 }
3097 peg$silentFails--;
3098 if (s0 === peg$FAILED) {
3099 s1 = peg$FAILED;
3100 if (peg$silentFails === 0) { peg$fail(peg$c95); }
3101 }
3102
3103 return s0;
3104 }
3105
3106 function peg$parseComment() {
3107 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…