MCPcopy Create free account
hub / github.com/chearon/dropflow / peg$parseident

Function peg$parseident

src/parse-css.js:10162–10194  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10160 }
10161
10162 function peg$parseident() {
10163 var s0, s1, s2, s3, s4;
10164
10165 s0 = peg$currPos;
10166 s1 = peg$currPos;
10167 if (input.charCodeAt(peg$currPos) === 45) {
10168 s2 = peg$c171;
10169 peg$currPos++;
10170 } else {
10171 s2 = peg$FAILED;
10172 if (peg$silentFails === 0) { peg$fail(peg$e190); }
10173 }
10174 if (s2 === peg$FAILED) {
10175 s2 = null;
10176 }
10177 s1 = input.substring(s1, peg$currPos);
10178 s2 = peg$parsenmstart();
10179 if (s2 !== peg$FAILED) {
10180 s3 = [];
10181 s4 = peg$parsenmchar();
10182 while (s4 !== peg$FAILED) {
10183 s3.push(s4);
10184 s4 = peg$parsenmchar();
10185 }
10186 peg$savedPos = s0;
10187 s0 = peg$f141(s1, s2, s3);
10188 } else {
10189 peg$currPos = s0;
10190 s0 = peg$FAILED;
10191 }
10192
10193 return s0;
10194 }
10195
10196 function peg$parsename() {
10197 var s0, s1, s2;

Callers 3

peg$parsefont_familyFunction · 0.85
peg$parseIDENTFunction · 0.85
peg$parseFUNCTIONFunction · 0.85

Calls 5

peg$failFunction · 0.85
peg$parsenmstartFunction · 0.85
peg$parsenmcharFunction · 0.85
peg$f141Function · 0.85
pushMethod · 0.80

Tested by

no test coverage detected