MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / is_continuation

Function is_continuation

scripts/code-verify.py:359–366  ·  view source on GitHub ↗

True if `raw` begins with a token that can only be a continuation.

(prev_kind: str, raw: str)

Source from the content-addressed store, hash-verified

357
358
359def is_continuation(prev_kind: str, raw: str) -> bool:
360 """True if `raw` begins with a token that can only be a continuation."""
361 if prev_kind not in ("prop", "other"):
362 return False
363 stripped = raw.rstrip()
364 if not stripped.strip():
365 return False
366 return bool(_CONTINUATION_PREFIX.match(stripped))
367
368
369def tokenize(raw_lines: list[str]) -> list[LogicalLine]:

Callers 1

tokenizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected