# Regular expression for comments in config file
comment_re = re.compile(
- '(^)?[^\S\n]*/(?:\*(.*?)\*/[^\S\n]*|/[^\n]*)($)?',
+ '(^)[^\S\n]*/(?:\*(.*?)\*/[^\S\n]*|/[^\n]*)($)?',
re.DOTALL | re.MULTILINE
)
data.pop('ONLY_LIST', None)
data.pop('IGNORE_LIST', None)
data.pop('FORMAT', None)
+ data.pop('QUOTE_FORMAT', None)
+ data.pop('NOTIFY_FORMAT', None)
return data
except:
return []
data = load_config(rainbow_config)
for d in data:
c[d] = data[d]
- except ValueError as e:
+ except (IOError, ValueError) as e:
c['USER_JSON_ERROR'] = str(e)
# Load default theme
theme_file = os.path.dirname(__file__) + \