title: Razor @if inside <script> is rejected by VS11
body: <p>Is the following markup incorrect, or is it a bug in the Razor engine in MVC4? Either way, what's the best workaround?</p>
  
  <p>The entire content of <strong>View1.cshtml</strong> is shown. It compiles fine, but the Intellisense error highlighting is annoying. <em>(Included as an image so you can see how the syntax is rejected by VS11.)</em></p>
  
  <p><img src="https://i.stack.imgur.com/rSyud.jpg" alt="Markup highlighting"></p>
  
  <p>Hote that the <code>@:</code> syntax (instead of <code>&lt;text&gt;&lt;/text&gt;</code>) isn't accepted either.</p>