INNER CODE UNIT · Python

StopParsing

snakemake/snakefmt · snakefmt/exceptions.py:5

class StopParsing(Exception):
    pass


class EmptyContextError(Exception):
    pass


def NotAnIdentifierError(line_nb: str, identifier: str, keyword_line: str):
    raise SyntaxError(
        f"{line_nb}'{identifier}' in '{keyword_line}' is not a valid identifier"
    )


def ColonError(line_nb: str, identifier: str, keyword_line: str):
    raise SyntaxError(
        f"{line_nb}Colon (not '{identifier}') expected after " f"'{keyword_line}'"
    )

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…