()
| 42 | let buffer = ''; |
| 43 | |
| 44 | function flush() { |
| 45 | if (buffer) { |
| 46 | children.push({ |
| 47 | type: 'text', |
| 48 | value: buffer, |
| 49 | source: buffer, |
| 50 | }); |
| 51 | buffer = ''; |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | while (index < length) { |
| 56 | const result = match(input, index, matchers); |