title: Nested conditional not being recognized properly
body: <p>I'm trying to nest a foreach within an if/else using Razor, but am having some issues with Razor claiming I'm missing a closing bracket. The code is below, where I've noted the "else" that isn't being syntax-highlighted by Visual Studio, which I'm guessing is where the issue lies:</p>
  
  <pre><code>    @if (ViewBag.user.administrativeRole != null)
      {
          &lt;select name="administrativeRole" id="administrativeRole" class="selectInput" disabled="disabled"&gt;   
      }
      else // this else isn't syntax highlighted 
      {
          &lt;select name="administrativeRole" id="administrativeRole" class="selectInput"&gt;
          @foreach (var role in ViewBag.roles)
          {
          if (ViewBag.user.administrativeRole != null &amp;&amp; ViewBag.user.administrativeRole == role.superadmin)
          {
              &lt;option value="@role.id" selected="selected"&gt;@role.name&lt;/option&gt;
          }
          else
          {
              &lt;option value="@role.id"&gt;@role.name&lt;/option&gt;
          }
      }
  }
  &lt;/select&gt;
  </code></pre>
  
  <p>which generates the following error:</p>
  
  <blockquote>
    <p>The if block is missing a closing "}"
    character.  Make sure you have a
    matching "}"  character for all the
    "{" characters within this block, and
    that none of the "}"  characters are
    being interpreted as markup.</p>
  </blockquote>
  
  <pre><code>Line 58: @if (ViewBag.user.administrativeRole != null)
  Line 59: {
  Line 60:    &lt;select name="administrativeRole" id="administrativeRole" class="selectInput" disabled="disabled"&gt;  
  </code></pre>
  
  <p>Any thoughts? I'm guessing I just borked the syntax a bit, as I'm new to Razor.</p>