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

Function peg$parseBreakToken

lib/parser.js:6270–6305  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6268 }
6269
6270 function peg$parseBreakToken() {
6271 var s0, s1, s2, s3;
6272
6273 s0 = peg$currPos;
6274 if (input.substr(peg$currPos, 5) === peg$c258) {
6275 s1 = peg$c258;
6276 peg$currPos += 5;
6277 } else {
6278 s1 = peg$FAILED;
6279 if (peg$silentFails === 0) { peg$fail(peg$c259); }
6280 }
6281 if (s1 !== peg$FAILED) {
6282 s2 = peg$currPos;
6283 peg$silentFails++;
6284 s3 = peg$parseIdentifierPart();
6285 peg$silentFails--;
6286 if (s3 === peg$FAILED) {
6287 s2 = peg$c5;
6288 } else {
6289 peg$currPos = s2;
6290 s2 = peg$c3;
6291 }
6292 if (s2 !== peg$FAILED) {
6293 s1 = [s1, s2];
6294 s0 = s1;
6295 } else {
6296 peg$currPos = s0;
6297 s0 = peg$c3;
6298 }
6299 } else {
6300 peg$currPos = s0;
6301 s0 = peg$c3;
6302 }
6303
6304 return s0;
6305 }
6306
6307 function peg$parseCaseToken() {
6308 var s0, s1, s2, s3;

Callers 1

peg$parseKeywordFunction · 0.85

Calls 2

peg$failFunction · 0.85
peg$parseIdentifierPartFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…