*cringes*
@currentlinetext = %1
should be:
currentlinetext = %1
I disable the '=' for variable assignment and use this instead:
#var currentlinetext {%1}
This creates a variable whose name is the contents of currentlinetext:
#var @currentlinetext {%1}