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

Function peg$parseMultiLineComment

lib/parser.js:3123–3224  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3121 }
3122
3123 function peg$parseMultiLineComment() {
3124 var s0, s1, s2, s3, s4, s5;
3125
3126 s0 = peg$currPos;
3127 if (input.substr(peg$currPos, 4) === peg$c107) {
3128 s1 = peg$c107;
3129 peg$currPos += 4;
3130 } else {
3131 s1 = peg$FAILED;
3132 if (peg$silentFails === 0) { peg$fail(peg$c108); }
3133 }
3134 if (s1 !== peg$FAILED) {
3135 s2 = [];
3136 s3 = peg$currPos;
3137 s4 = peg$currPos;
3138 peg$silentFails++;
3139 if (input.substr(peg$currPos, 3) === peg$c109) {
3140 s5 = peg$c109;
3141 peg$currPos += 3;
3142 } else {
3143 s5 = peg$FAILED;
3144 if (peg$silentFails === 0) { peg$fail(peg$c110); }
3145 }
3146 peg$silentFails--;
3147 if (s5 === peg$FAILED) {
3148 s4 = peg$c5;
3149 } else {
3150 peg$currPos = s4;
3151 s4 = peg$c3;
3152 }
3153 if (s4 !== peg$FAILED) {
3154 s5 = peg$parseSourceCharacter();
3155 if (s5 !== peg$FAILED) {
3156 s4 = [s4, s5];
3157 s3 = s4;
3158 } else {
3159 peg$currPos = s3;
3160 s3 = peg$c3;
3161 }
3162 } else {
3163 peg$currPos = s3;
3164 s3 = peg$c3;
3165 }
3166 while (s3 !== peg$FAILED) {
3167 s2.push(s3);
3168 s3 = peg$currPos;
3169 s4 = peg$currPos;
3170 peg$silentFails++;
3171 if (input.substr(peg$currPos, 3) === peg$c109) {
3172 s5 = peg$c109;
3173 peg$currPos += 3;
3174 } else {
3175 s5 = peg$FAILED;
3176 if (peg$silentFails === 0) { peg$fail(peg$c110); }
3177 }
3178 peg$silentFails--;
3179 if (s5 === peg$FAILED) {
3180 s4 = peg$c5;

Callers 1

peg$parseCommentFunction · 0.85

Calls 2

peg$failFunction · 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…