title: Groovy Error unexpected token: @ line
body: <p>I'm getting the following error in Groovy 2.1</p>
  
  <pre><code> script1409163855794789083714.groovy: 53: unexpected token:  @ line
  </code></pre>
  
  <p>Two questions here
  1 - Doesn't it normally say what the token is that's causing the issue? What's it mean when it's blank?
  2 - Since it isn't saying the script name, it's giving me script, does that mean this issue is in a class that my script is calling, and not the primary one?</p>
  
  <p>What's odd is, I don't get an error when I run it with Groovy 2.0*. So this might be difficult for anyone else to replicate. I'm jsut asking what the error message means in general, not trying to get someone to solve my problem for me :)</p>
  
  <p>EDIT - The error isn't on line 53 at all, I've narrowed it down to this line. Tim Yates might be onto something in his comment below, but retyping it didn't help.</p>
  
  <p>config = new ConfigSlurper().parse(new File("D:/schedule/cm/dev/riv11a/ssi/RIV-ssi.groovy").text)</p>
  
  <p>EDIT - This line parses a configSlurper file that has a line that looks like var=</p>
  
  <p>So that's the error. Thank you!! I really wish groovy would tell you which file your error is in.</p>