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:
parent
07ae3593c3
commit
c5833f1417
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user