sublime_valign icon indicating copy to clipboard operation
sublime_valign copied to clipboard

Namespace Resolution Operator Alignment

Open JohannesMP opened this issue 6 years ago • 1 comments

The following c++ code:

A::B obj1;
LongNamespace::C obj2;

Aligns on the colon character:

A:             :B obj1;
LongNamespace: :C obj2;

This of course is not valid C++ anymore.

It would be nice if there was a setting to allow alignment on : but disable alignment on ::. Maybe a blacklist of strings that will prevent alignment if they contain a character that normally would be aligned on.


Potentially this could be used to address issues such as #37 - in this case == would be added to the blacklist, which would prevent === from ever getting split, since the = characters in it would never be considered for splitting.

JohannesMP avatar Feb 14 '18 21:02 JohannesMP