Sublime Forum

Red-line highlight bug

#1

In 2.0.2 (Build 2221), the following code in C++ displays an erroneous mismatched brace red-line warning at the last line of the file.

namespace Baz
{
  class Foo
  {
    class Bar
    {
      int a, b;
      Bar() : a(0),
        b(0) {}
    };
    ~Foo() {}
  };
}
//This comment line needs to be here to trigger the bug.

There are various workarounds that make the red line disappear, so it seems like this is a very specific set of cases that trigger the problem.

0 Likes