codemirror / CodeMirror-v1

An editable-iframe based code editor in JavaScript. See https://github.com/marijnh/CodeMirror for the currently maintained version
http://codemirror.net/
Other
362 stars 63 forks source link

C# parser problem with foreach #23

Closed dricks closed 14 years ago

dricks commented 14 years ago

Hi,

it seems that indentation does not wirk with the foreach keyword using the C# parser.

in the provided sample, add a foreach : ... ... public decimal CalculateSalary(int grade) { string[] strs=new string[]{"test"};

      foreach(string s in strs)
              {
              //DOH! What's wrong ?!
              }

      if (grade > 10)
        return 1000;
      return 500;
    }
dricks commented 14 years ago

As of 10/11/2010, it seems that it has been fixed Thanks !