2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-26 19:40:12 +00:00

Reserve some characters for special syntax

May need to modify some behaviors in future, provide
a healthy supply of reserved characters toward that end.
This commit is contained in:
Jarrod Johnson 2021-03-25 08:56:33 -04:00
parent 07ae3593c3
commit c5833f1417

View File

@ -45,6 +45,10 @@ class SyncList(object):
ent = ent[:cmtidx]
except ValueError:
pass
for special in '!@$%^&*()|{}':
if special in ent:
raise Exception(
'Special character "{}" reserved for future use'.format(special))
ent = ent.strip()
if not ent:
continue