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

Function peg$parseCustomElementPart

lib/parser.js:1869–1921  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1867 }
1868
1869 function peg$parseCustomElementPart() {
1870 var s0, s1, s2, s3, s4;
1871
1872 s0 = peg$currPos;
1873 s1 = peg$currPos;
1874 if (input.charCodeAt(peg$currPos) === 45) {
1875 s2 = peg$c40;
1876 peg$currPos++;
1877 } else {
1878 s2 = peg$FAILED;
1879 if (peg$silentFails === 0) { peg$fail(peg$c41); }
1880 }
1881 if (s2 !== peg$FAILED) {
1882 s3 = [];
1883 if (peg$c38.test(input.charAt(peg$currPos))) {
1884 s4 = input.charAt(peg$currPos);
1885 peg$currPos++;
1886 } else {
1887 s4 = peg$FAILED;
1888 if (peg$silentFails === 0) { peg$fail(peg$c39); }
1889 }
1890 if (s4 !== peg$FAILED) {
1891 while (s4 !== peg$FAILED) {
1892 s3.push(s4);
1893 if (peg$c38.test(input.charAt(peg$currPos))) {
1894 s4 = input.charAt(peg$currPos);
1895 peg$currPos++;
1896 } else {
1897 s4 = peg$FAILED;
1898 if (peg$silentFails === 0) { peg$fail(peg$c39); }
1899 }
1900 }
1901 } else {
1902 s3 = peg$c3;
1903 }
1904 if (s3 !== peg$FAILED) {
1905 s2 = [s2, s3];
1906 s1 = s2;
1907 } else {
1908 peg$currPos = s1;
1909 s1 = peg$c3;
1910 }
1911 } else {
1912 peg$currPos = s1;
1913 s1 = peg$c3;
1914 }
1915 if (s1 !== peg$FAILED) {
1916 s1 = input.substring(s0, peg$currPos);
1917 }
1918 s0 = s1;
1919
1920 return s0;
1921 }
1922
1923 function peg$parseCustomElementEnder() {
1924 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…