{"comment":{"user":{"login":"adzenith","id":614934,"url":"https://api.github.com/users/adzenith","avatar_url":"https://secure.gravatar.com/avatar/1280dcb30744b0bb01c20d51568f8e17?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"1280dcb30744b0bb01c20d51568f8e17"},"created_at":"2011-12-29T17:45:03Z","path":null,"updated_at":"2011-12-29T17:45:03Z","id":826630,"position":null,"html_url":"https://github.com/SublimeText/WordHighlight/commit/92a37111c6#commitcomment-826630","body":"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.","url":"https://api.github.com/repos/SublimeText/WordHighlight/comments/826630","line":null,"commit_id":"92a37111c6c6258e065027b5119476e9dc926d44"}}