Closes #30 - Incorrect error handling when frameName used near EOF.

I added a test case to ensure that proves that all variants if nextTokenIs is used just before EOF.
I'm not 100% sure this solution is the best one but it worked fine for me.
Before the change in the PSI dump <literal expression> was skipped in error message (PsiErrorElement).