Merge branch 'warn_invalid_config' of https://github.com/Luflosi/kitty
This commit is contained in:
commit
4b08ce2a09
@ -60,7 +60,9 @@ def parse_line(line, type_map, special_handling, ans, all_keys, base_path_for_in
|
|||||||
if not line or line.startswith('#'):
|
if not line or line.startswith('#'):
|
||||||
return
|
return
|
||||||
m = key_pat.match(line)
|
m = key_pat.match(line)
|
||||||
if m is not None:
|
if m is None:
|
||||||
|
log_error('Ignoring invalid config line: {}'.format(line))
|
||||||
|
return
|
||||||
key, val = m.groups()
|
key, val = m.groups()
|
||||||
if special_handling(key, val, ans):
|
if special_handling(key, val, ans):
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user