MCPcopy Create free account
hub / github.com/claude-code-best/claude-code / skipNewlines

Function skipNewlines

src/utils/bash/bashParser.ts:917–926  ·  view source on GitHub ↗
(P: ParseState)

Source from the content-addressed store, hash-verified

915}
916
917function 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.

Callers 8

parseAndOrFunction · 0.85
parsePipelineFunction · 0.85
parseSimpleCommandFunction · 0.85
parseForFunction · 0.85
parseDoGroupFunction · 0.85
parseCaseFunction · 0.85
parseFunctionFunction · 0.85
consumeKeywordFunction · 0.85

Calls 3

saveLexFunction · 0.85
nextTokenFunction · 0.85
restoreLexFunction · 0.85

Tested by

no test coverage detected