Keys for role names in "roles:" section

At some point in the past, the documentation specified that role names (for roles with arguments) in the roles: section were indicated by a name: key. Now, the documentation examples show that role names in that section are indicated by a "role:" key. Both syntaxes seem to work in 2.7, but: when did it change, is there documentation on it, and will the old syntax be deprecated?