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

Function peg$parseCustomElementStart

lib/parser.js:1835–1867  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1833 }
1834
1835 function peg$parseCustomElementStart() {
1836 var s0, s1, s2;
1837
1838 s0 = peg$currPos;
1839 s1 = [];
1840 if (peg$c38.test(input.charAt(peg$currPos))) {
1841 s2 = input.charAt(peg$currPos);
1842 peg$currPos++;
1843 } else {
1844 s2 = peg$FAILED;
1845 if (peg$silentFails === 0) { peg$fail(peg$c39); }
1846 }
1847 if (s2 !== peg$FAILED) {
1848 while (s2 !== peg$FAILED) {
1849 s1.push(s2);
1850 if (peg$c38.test(input.charAt(peg$currPos))) {
1851 s2 = input.charAt(peg$currPos);
1852 peg$currPos++;
1853 } else {
1854 s2 = peg$FAILED;
1855 if (peg$silentFails === 0) { peg$fail(peg$c39); }
1856 }
1857 }
1858 } else {
1859 s1 = peg$c3;
1860 }
1861 if (s1 !== peg$FAILED) {
1862 s1 = input.substring(s0, peg$currPos);
1863 }
1864 s0 = s1;
1865
1866 return s0;
1867 }
1868
1869 function peg$parseCustomElementPart() {
1870 var s0, s1, s2, s3, s4;

Callers 1

Calls 1

peg$failFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…