herbert breunung:

> in my opinion these braces should not matching, but they do.:        "(
> { ) }"
> bug or feature?.

   Sometimes being a little sloppy helps:

int Spacing() {
    return LineHeight(10 *
#ifdef GTK
          PangoInformation("Sans").unit_height);
#else
          heights["Verdana"]);
#endif
}

   If you perform the check your way then the '{' won't match the '}'.
As it is, you get some localised bad behaviour (the final ')' doesn't
match the start of the call) but larger constructs match OK. Its
debatable but my reasoning is that each of the brace types should be
treated as separate layers and you are normally thinking about just
one of these.

   Neil

_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to