(P: ParseState)
| 915 | } |
| 916 | |
| 917 | function skipNewlines(P: ParseState): void { |
| 918 | while (true) { |
| 919 | const save = saveLex(P.L) |
| 920 | const t = nextToken(P.L, 'cmd') |
| 921 | if (t.type !== 'NEWLINE') { |
| 922 | restoreLex(P.L, save) |
| 923 | break |
| 924 | } |
| 925 | } |
| 926 | } |
| 927 | |
| 928 | /** |
| 929 | * Parse commands joined by | or |&. Flat children with operator leaves. |
no test coverage detected