atom / language-c

C support in Atom
Other
117 stars 153 forks source link

class/struct constructor initializer lists have inconsistent member highlighting when a newline begins #101

Open jaredmpayne opened 8 years ago

jaredmpayne commented 8 years ago

Using Atom 1.1.0 on OS X 10.11.

Screenshot:

screen shot 2015-11-06 at 2 11 53 am

As seen in the screenshot, most members in the list are white (variable color), but the first member at the beginning of a newline is incorrectly highlighted blue (function color). This issue occurs with both classes and structs.

winstliu commented 7 years ago
struct Node {
    T value;
    int balance_factor;
    Node *parent, *left, *right;

    Node(T_value) : value(_value), balance_factor(0), parent(nullptr),
    left(nullptr), right(nullptr) {}
};

for easy copy/paste testing.

sean-mcmanus commented 7 years ago

Another repro seems to be https://github.com/Microsoft/vscode-cpptools/issues/529 .