Make select_lines handle selectors in comments

Also add a test for this.