I wish the line number and column position were displayed at the bottom of the Winbox script editor.
At the moment, when I get an error like "syntax error (line 54 column 14)", I cut and paste the script into a text editor, just so that I can find out what line it interpreter is complaining about.