Try to fix selector-newline rule.

Refs #490.

This could probably be simplified, but I just wanted to get a working solution. If anyone wants to improve this, please, go ahead. But it seems it works properly.