Very useful information, thanks !
I was just in the editor and accidently copy & pasted a variable so that I ended up having %%variablename. The editor did not complain when I saved.
Have you ever tried, if something like that works ? (It does in scripting languages like PHP or shell scripts I think.)