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

Function peg$parsefont

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

Source from the content-addressed store, hash-verified

3841 }
3842
3843 function peg$parsefont() {
3844 var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10;
3845
3846 s0 = peg$currPos;
3847 s1 = peg$currPos;
3848 s2 = peg$parsefont_wssv();
3849 s3 = peg$parsefont_size();
3850 if (s3 !== peg$FAILED) {
3851 s4 = peg$currPos;
3852 s5 = peg$currPos;
3853 peg$silentFails++;
3854 s6 = peg$currPos;
3855 s7 = [];
3856 s8 = peg$parseS();
3857 while (s8 !== peg$FAILED) {
3858 s7.push(s8);
3859 s8 = peg$parseS();
3860 }
3861 if (input.charCodeAt(peg$currPos) === 47) {
3862 s8 = peg$c2;
3863 peg$currPos++;
3864 } else {
3865 s8 = peg$FAILED;
3866 if (peg$silentFails === 0) { peg$fail(peg$e2); }
3867 }
3868 if (s8 !== peg$FAILED) {
3869 s7 = [s7, s8];
3870 s6 = s7;
3871 } else {
3872 peg$currPos = s6;
3873 s6 = peg$FAILED;
3874 }
3875 peg$silentFails--;
3876 if (s6 === peg$FAILED) {
3877 s5 = undefined;
3878 } else {
3879 peg$currPos = s5;
3880 s5 = peg$FAILED;
3881 }
3882 if (s5 !== peg$FAILED) {
3883 s6 = [];
3884 s7 = peg$parseS();
3885 if (s7 !== peg$FAILED) {
3886 while (s7 !== peg$FAILED) {
3887 s6.push(s7);
3888 s7 = peg$parseS();
3889 }
3890 } else {
3891 s6 = peg$FAILED;
3892 }
3893 if (s6 !== peg$FAILED) {
3894 s5 = [s5, s6];
3895 s4 = s5;
3896 } else {
3897 peg$currPos = s4;
3898 s4 = peg$FAILED;
3899 }
3900 } else {

Callers 1

peg$parsefont_decFunction · 0.85

Calls 8

peg$parsefont_wssvFunction · 0.85
peg$parsefont_sizeFunction · 0.85
peg$parseSFunction · 0.85
peg$failFunction · 0.85
peg$parseline_heightFunction · 0.85
peg$f46Function · 0.85
pushMethod · 0.80

Tested by

no test coverage detected