ScriptParser generates warnings without context from FileParser
I have received the following error on the console several times (while travelling via guild guide?):
warning line 38, column 6 (endif) endif without matching if/elseif
I wanted to investigate further, but found it difficult without better context for which script contained the error. This ticket requests that additional context be provided.
It appears that the ErrorHandler is on the Parser object, which contains the FileParser instance, which in turn contains the ScriptParser instance which issues the warning(). The script name is on the FileParser object via getName(). Perhaps the FileParser should fill in a context field when constructed for the Parser use when reporting the error? Or the TokenLoc object should be expanded to include the script name and the name filled in when the TokenLoc object is constructed? I didn't want to pre-judge the appropriate solution, so I didn't attempt to produce a fix for the problem.
(RM-2813 from redmine: created on 2015-08-01 by Cory Cohen, , closed on 2017-02-21 by nobody)