On a related note: the line numbers for errors in item/charScripts are often off by several lines (the error is always shown on a higher line than where the error is occurring). I haven't discovered yet which kind of statements get skipped by the line counting.
I've found it: it's empty lines that are skipped. Putting a tab or space on them is sufficient for them to get counted.