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

Function peg$parsevertical_align

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

Source from the content-addressed store, hash-verified

3204 }
3205
3206 function peg$parsevertical_align() {
3207 var s0, s1;
3208
3209 s0 = peg$currPos;
3210 if (input.substr(peg$currPos, 8) === peg$c44) {
3211 s1 = peg$c44;
3212 peg$currPos += 8;
3213 } else {
3214 s1 = peg$FAILED;
3215 if (peg$silentFails === 0) { peg$fail(peg$e49); }
3216 }
3217 if (s1 === peg$FAILED) {
3218 if (input.substr(peg$currPos, 6) === peg$c45) {
3219 s1 = peg$c45;
3220 peg$currPos += 6;
3221 } else {
3222 s1 = peg$FAILED;
3223 if (peg$silentFails === 0) { peg$fail(peg$e50); }
3224 }
3225 if (s1 === peg$FAILED) {
3226 if (input.substr(peg$currPos, 3) === peg$c46) {
3227 s1 = peg$c46;
3228 peg$currPos += 3;
3229 } else {
3230 s1 = peg$FAILED;
3231 if (peg$silentFails === 0) { peg$fail(peg$e51); }
3232 }
3233 if (s1 === peg$FAILED) {
3234 if (input.substr(peg$currPos, 5) === peg$c47) {
3235 s1 = peg$c47;
3236 peg$currPos += 5;
3237 } else {
3238 s1 = peg$FAILED;
3239 if (peg$silentFails === 0) { peg$fail(peg$e52); }
3240 }
3241 if (s1 === peg$FAILED) {
3242 if (input.substr(peg$currPos, 8) === peg$c48) {
3243 s1 = peg$c48;
3244 peg$currPos += 8;
3245 } else {
3246 s1 = peg$FAILED;
3247 if (peg$silentFails === 0) { peg$fail(peg$e53); }
3248 }
3249 if (s1 === peg$FAILED) {
3250 if (input.substr(peg$currPos, 11) === peg$c49) {
3251 s1 = peg$c49;
3252 peg$currPos += 11;
3253 } else {
3254 s1 = peg$FAILED;
3255 if (peg$silentFails === 0) { peg$fail(peg$e54); }
3256 }
3257 if (s1 === peg$FAILED) {
3258 s1 = peg$parseLENGTH();
3259 if (s1 === peg$FAILED) {
3260 s1 = peg$parsePERCENTAGE();
3261 if (s1 === peg$FAILED) {
3262 if (input.substr(peg$currPos, 3) === peg$c50) {
3263 s1 = peg$c50;

Callers 1

Calls 4

peg$failFunction · 0.85
peg$parseLENGTHFunction · 0.85
peg$parsePERCENTAGEFunction · 0.85
peg$f34Function · 0.85

Tested by

no test coverage detected