SublimeText/WordHighlight — comment on commit 92a37111c6c6258e065027b5119476e9dc926d44
File:  line 0
By adzenith:

It's a list comprehension. The square brackets mean "make a list", and then you use sort of typical for and if statements to make a list based off another list. So it's saying "for every selection: make a list of every region that doesn't contain the selection, and then update regions to be that new list". So one by one we go through the selections and if any region that we're going to highlight is around the selection, remove it from the list: i.e., don't highlight the words under the cursors if the selections are empty. Does that make any sense? I'm not sure I'm explaining it real well.