blark.util.find_and_clean_comments
- blark.util.find_and_clean_comments(text: str, *, replace_char: str = ' ', line_map: dict[int, int] | None = None) Tuple[List[Token], str] [source]
Clean nested multiline comments from
text
.For a nested comment like
"(* (* abc *) *)"
, the inner comment markers would be replaced withreplace_char
, resulting in the return value"(* abc *)"
.