def get_parser(view):
    scope = view.scope_name(view.sel()[0].end())
    res = re.search(r'\bsource\.([a-z+\-]+)', scope)
    source_lang = res.group(1) if res else 'js'
    view_settings = view.settings()

    if source_lang == "python":
        return PythonParser(view_settings)

    return None
Returns the class of the parser to use.
dataset/ETHPy150Open adambullmer/sublime_docblockr_python/parsers/parser.py/get_parser