A little bit late but I got the same error and I realized that it was because I copied some code from a PDF. Check the difference between these two:
-
-
The first one is from hitting the minus sign on keyboard and the second is from a latex generated PDF.