title: Razor/JavaScript and trailing semicolon
body: <p>Using Visual Studio 2012, on a Razor view page, in the JavaScript section, I am getting what I think is a battle between Razor syntax vs JavaScript syntax. In particular, the trailing semicolon in the script section is flagged by intellisense and a compiler warning (not error) is delivered:</p>
  
  <blockquote>
    <p>'Warning 13 Syntax error'.</p>
  </blockquote>
  
  <p>If I remove it, then I get a statement termination recommendation (<a href="http://en.wikipedia.org/wiki/ReSharper" rel="noreferrer">ReSharper</a> in this case, but just good practice).</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $().ready(function(){
          var customer = @Html.Raw(ViewBag.CustomerJSON);  // &lt;- Razor (I think) doesn't like this semicolon
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>Is this a bug in Razor? If so, is there a way I can rewrite this to avoid this issue?</p>