Fix parsing the end of class definition. In case we look for closing '"' character we count preceding '\\' characters to detect if we should skip the '"' or not. The bug discovered during doing the similar parser for eclipse.