Find correct todo keyword when capturing by template