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

Function peg$parseMultiLineCommentNoLineTerminator

lib/parser.js:3226–3333  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3224 }
3225
3226 function peg$parseMultiLineCommentNoLineTerminator() {
3227 var s0, s1, s2, s3, s4, s5;
3228
3229 s0 = peg$currPos;
3230 if (input.substr(peg$currPos, 4) === peg$c107) {
3231 s1 = peg$c107;
3232 peg$currPos += 4;
3233 } else {
3234 s1 = peg$FAILED;
3235 if (peg$silentFails === 0) { peg$fail(peg$c108); }
3236 }
3237 if (s1 !== peg$FAILED) {
3238 s2 = [];
3239 s3 = peg$currPos;
3240 s4 = peg$currPos;
3241 peg$silentFails++;
3242 if (input.substr(peg$currPos, 3) === peg$c109) {
3243 s5 = peg$c109;
3244 peg$currPos += 3;
3245 } else {
3246 s5 = peg$FAILED;
3247 if (peg$silentFails === 0) { peg$fail(peg$c110); }
3248 }
3249 if (s5 === peg$FAILED) {
3250 s5 = peg$parseLineTerminator();
3251 }
3252 peg$silentFails--;
3253 if (s5 === peg$FAILED) {
3254 s4 = peg$c5;
3255 } else {
3256 peg$currPos = s4;
3257 s4 = peg$c3;
3258 }
3259 if (s4 !== peg$FAILED) {
3260 s5 = peg$parseSourceCharacter();
3261 if (s5 !== peg$FAILED) {
3262 s4 = [s4, s5];
3263 s3 = s4;
3264 } else {
3265 peg$currPos = s3;
3266 s3 = peg$c3;
3267 }
3268 } else {
3269 peg$currPos = s3;
3270 s3 = peg$c3;
3271 }
3272 while (s3 !== peg$FAILED) {
3273 s2.push(s3);
3274 s3 = peg$currPos;
3275 s4 = peg$currPos;
3276 peg$silentFails++;
3277 if (input.substr(peg$currPos, 3) === peg$c109) {
3278 s5 = peg$c109;
3279 peg$currPos += 3;
3280 } else {
3281 s5 = peg$FAILED;
3282 if (peg$silentFails === 0) { peg$fail(peg$c110); }
3283 }

Callers 1

peg$parse_Function · 0.85

Calls 3

peg$failFunction · 0.85
peg$parseLineTerminatorFunction · 0.85
peg$parseSourceCharacterFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…