markohlebar / Import

Xcode extension for adding imports from anywhere in the code ☝️
MIT License
848 stars 40 forks source link

Forward class regex catches array definitions #25

Closed markohlebar closed 7 years ago

markohlebar commented 7 years ago

When code contains class types in an array, the regex fails to ignore them and places the import below them.

Example: [Fabric with:@[[Crashlytics class]]];

Expected: the import is placed below other imports.

Actual: the import is placed below the example line of code.

[Fabric with:@[[Crashlytics class]]];
#import "ABC.h"