Converted from Ben Gold's TextMate bundle