There has been an issue that has been popping up in isolated cases. It seems to affect the use of the Hypershade where as it appears empty or partial empty and you may see the ‘Invalid Syntax’ Error.
This is being caused when you have an apostrophe (‘) in the path to your local Maya folder.
For example: C:/John’s Documents/maya/2011-x64/…”
The easiest and quickest fix would be to create a new user account without the use of an apostrophe in the name and log into that to use the application.