Add support for [rev] format as well as r.rev