def get_bracket_regions(settings, minimap):
 styles = settings.get('bracket_styles', DEFAULT_STYLES)
 icon_path = 'Packages/BracketHighlighter/icons'
 for (key, value) in DEFAULT_STYLES.items():
  if (key not in styles):
   styles[key] = value
   continue
  for (k, v) in value.items():
   if (k not in styles[key]):
    styles[key][k] = v
 default_settings = styles['default']
 for (k, v) in styles.items():
  (yield (k, StyleDefinition(k, v, default_settings, icon_path, minimap)))

def get_bracket_regions ( settings , minimap ) : styles = settings . get ( 'bracket_styles' , DEFAULT_STYLES ) icon_path = 'Packages/BracketHighlighter/icons' for ( key , value ) in DEFAULT_STYLES . items ( ) : if ( key not in styles ) : styles [ key ] = value continue for ( k , v ) in value . items ( ) : if ( k not in styles [ key ] ) : styles [ key ] [ k ] = v default_settings = styles [ 'default' ] for ( k , v ) in styles . items ( ) : ( yield ( k , StyleDefinition ( k , v , default_settings , icon_path , minimap ) ) )
get styled regions for brackets to use .