editor more in line with sweet.js tab usage
handle patterns after a repeated pattern fixes #137
build