$name=value$ in .pony files support bug fix

This commit is contained in:
Mattias Andrée 2012-10-10 20:51:48 +02:00
parent eadd55dcb7
commit 9eb038542d

View file

@ -1304,8 +1304,8 @@ class Backend():
if c == '$':
if dollar is not None:
if '=' in dollar:
name = dollar[:find('=')]
value = dollar[find('=') + 1:]
name = dollar[:dollar.find('=')]
value = dollar[dollar.find('=') + 1:]
variables[name] = value
elif not dollar.startswith('balloon'):
data = variables[dollar].replace('$', '$$')