Just tried with a tokenised script, and the line count is preserved:
Code:
C:\Temp>c:\windows\kix32.exe err.kx

ERROR : array reference out of bounds!
Script: err.kx
Line : 3