title: C# 'parsing ")" - Too Many )'s Issue
body: <p>I recently stumbled across this problem while testing my C# program.</p>
  
  <blockquote>
    <p>parsing ")" - Too Many )'s</p>
  </blockquote>
  
  <p>Here is my code:</p>
  
  <pre><code>        try
          {
              if (e.ChangedRange.Text.Contains(";") &amp;&amp; Convert.ToBoolean(e.ChangedRange.Text.IndexOf(")", 1)))
              {
                  if (!e.ChangedRange.Text.Contains(";") &amp;&amp; !Convert.ToBoolean(e.ChangedRange.Text.IndexOf(")", 1)))
                      LuaLibrary.isParenthesesSemiColonError = false;
                  else
                  {
                      LuaLibrary.isParenthesesSemiColonError = true;
                      e.ChangedRange.SetStyle(error_red, ");", RegexOptions.IgnoreCase);
                  }
              }
          }
          catch (Exception ex)
          {
              MessageBox.Show(ex.Message);
          }
  </code></pre>
  
  <p>What I'm doing here is, I'm checking to see if the current line (e.ChangedRange.Text) contains ';' with the IndexOf a ')'. (And reversed on the second 'if' statement): I'm assuming they are both causing my issue; however, I don't have a clue on how to fix it.</p>
  
  <p>Help would be greatly appreciated.</p>