Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(1)  |  Derive(0)  |  Import(2)

        def get_syntax_mode_mapping(user_defined_syntax_mode_mapping=None):
    mapping = SYNTAX_MODE_MAPPING.copy()
    if user_defined_syntax_mode_mapping:
        mapping.update(user_defined_syntax_mode_mapping)
    return mapping
        


src/s/u/SublimeAStyleFormatter-HEAD/AStyleFormat.py   SublimeAStyleFormatter(Download)
if sys.version_info < (3, 0):
    import pyastyle
    from AStyleFormatterLib import get_syntax_mode_mapping, Options
    from AStyleFormatterLib.MergeUtils import merge_code
else:
    from . import pyastyle
    from .AStyleFormatterLib import get_syntax_mode_mapping, Options
def is_supported_syntax(view, syntax):
    mapping = get_setting_for_view(view, 'user_defined_syntax_mode_mapping', {})
    return syntax in get_syntax_mode_mapping(mapping)