Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/syntax_highlighting/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@
# Synced conf

def sync_keys(tosync, ref):
for key in [x for x in list(tosync.keys()) if x not in ref]:
del(tosync[key])
for key in set(tosync) - set(ref):
del tosync[key]

for key in [x for x in list(ref.keys()) if x not in tosync]:
for key in set(ref) - set(tosync):
tosync[key] = ref[key]


Expand Down