()
| 21 | }; |
| 22 | |
| 23 | const peek = () => { |
| 24 | if (t[i] === '\\' && t[i + 1] !== undefined) { |
| 25 | // Escape characters |
| 26 | if ('\\`*_{}[]<>()#+-.!|'.includes(t[i + 1])) { |
| 27 | i += 1; |
| 28 | return t[i]; |
| 29 | } |
| 30 | } |
| 31 | return t[i]; |
| 32 | }; |
| 33 | |
| 34 | const consume = () => { |
| 35 | const c = peek(); |