Group whole-line-or-region references together