parameters: (self, setting_file, attribute)
docstring: Read wrap entries from the settings file
docstring_summary: Read wrap entries from the settings file
docstring_tokens: Read wrap entries from the settings file
function: def read_wrap_entries(self, setting_file, attribute):
          """
          Read wrap entries from the settings file
          """
  
          settings = sublime.load_settings(setting_file)
          syntax = self.view.settings().get('syntax')
          language = basename(syntax).replace('.tmLanguage', '').lower() if syntax != None else "plain text"
          wrapping = settings.get(attribute, [])
          for i in wrapping:
              if not exclude_entry(i["enabled"], i["language_filter"], i["language_list"], language):
                  for j in i.get("entries", []):
                      try:
                          menu_entry = j["name"]
                          bracket_entry = j["brackets"]
                          insert_style = j.get("insert_style", ["inline"])
                          self._menu.append(menu_entry)
                          self._brackets.append(bracket_entry)
                          self._insert.append(insert_style)
                      except Exception:
                          pass
function_tokens: def read_wrap_entries ( self , setting_file , attribute ) : settings = sublime . load_settings ( setting_file ) syntax = self . view . settings ( ) . get ( 'syntax' ) language = basename ( syntax ) . replace ( '.tmLanguage' , '' ) . lower ( ) if syntax != None else "plain text" wrapping = settings . get ( attribute , [ ] ) for i in wrapping : if not exclude_entry ( i [ "enabled" ] , i [ "language_filter" ] , i [ "language_list" ] , language ) : for j in i . get ( "entries" , [ ] ) : try : menu_entry = j [ "name" ] bracket_entry = j [ "brackets" ] insert_style = j . get ( "insert_style" , [ "inline" ] ) self . _menu . append ( menu_entry ) self . _brackets . append ( bracket_entry ) self . _insert . append ( insert_style ) except Exception : pass