title: Unexpected "foreach" keyword after "@" character
body: <p>I have a partial view done in razor.  When I run it I get the following error - it seems like Razor gets stuck into thinking I'm writing code everywhere.</p>
  
  <blockquote>
    <p>Unexpected "foreach" keyword after "@" character.  Once inside code, you do not need to prefix constructs like "foreach" with "@"</p>
  </blockquote>
  
  <p>Here is my view:</p>
  
  <pre><code>@model IEnumerable&lt;SomeModel&gt;
  
  &lt;div&gt;
  @using(Html.BeginForm("Update", "UserManagement", FormMethod.Post)) {
  
      @Html.Hidden("UserId", ViewBag.UserId)
  
  @foreach(var link in Model) {
      if(link.Linked) {
           &lt;input type="checkbox" name="userLinks" value="@link.Id" checked="checked" /&gt;@link.Description&lt;br /&gt;
      } else {
           &lt;input type="checkbox" name="userLinks" value="@link.Id" /&gt;@link.Description&lt;br /&gt;         
      }
  }
  
  }
  &lt;/div&gt;
  </code></pre>