MCPcopy Index your code
hub / github.com/codeaashu/claude-code / isHeredocDelimChar

Function isHeredocDelimChar

src/utils/bash/bashParser.ts:252–270  ·  view source on GitHub ↗

* Unquoted heredoc delimiter chars. Bash accepts most non-metacharacters — * not just identifiers. Stop at whitespace, redirects, pipe/list operators, * and structural tokens. Allows !, -, ., +, etc. (e.g. <<!HEREDOC!).

(c: string)

Source from the content-addressed store, hash-verified

250 * and structural tokens. Allows !, -, ., +, etc. (e.g. <<!HEREDOC!).
251 */
252function isHeredocDelimChar(c: string): boolean {
253 return (
254 c !== '' &&
255 c !== ' ' &&
256 c !== '\t' &&
257 c !== '\n' &&
258 c !== '<' &&
259 c !== '>' &&
260 c !== '|' &&
261 c !== '&' &&
262 c !== ';' &&
263 c !== '(' &&
264 c !== ')' &&
265 c !== "'" &&
266 c !== '"' &&
267 c !== '`' &&
268 c !== '\\'
269 )
270}
271
272function skipBlanks(L: Lexer): void {
273 while (L.i < L.len) {

Callers 1

tryParseRedirectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected