After a quick test I would say it solved the problem. Thank you!
One question though, variables declared in a package spec still not highlighted in the body, spec and body are in the same file.
Not sure whether it's intended functionality and how it worked in v7.
Fixed the crash and the highlights (most of them)
Thank you!
Are you going to fix the undeclared variables in any future patch? If not, could you please include it as an enhancement request, as well as the package spec declared ones.