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 with replace_char, resulting in the return value "(*    abc    *)".