Unexpected Error in IEEEtrans.cls [closed]

I am new to LaTeX. I have been working on a .tex file and very unexpectedly, encountered the following error:

 Error message - **There is a '}' missing: unexpected end of line.**


in the following line of my IEEEtrans.cls files.

 {\catcode\|=0 \catcode\\=12
|xdef|@IEEEbackslash{\}}


Any pointers or remedies?

-
I don't think that is a TeX error, is it an error message from your editor, which may not be able to understand the syntax used there. But you should almost never need to load the class file into your editor. –  David Carlisle Jun 28 '12 at 12:41
also does it really say |xdef|@IEEEbackslash{}} I'd have expected |xdef|@IEEEbackslash{\} –  David Carlisle Jun 28 '12 at 13:08
If they had used {\escapechar=\m@ne\xdef\@IEEEbackslash{\string\\}} the editor wouldn't complain. Alternatively, \edef\@IEEEbackslash{\expandafter\@gobble\string\\}. Or, even better, \let\@IEEEbackslash\@backslashchar –  egreg Jun 28 '12 at 23:04