More informative errors when @reference$ found

the current error for a line like
...
@reference
...

doesn't tell the user that the line could be in any file, but will match "@reference$" and how to fix this...