style: parse the remaining animation longhands.

This commit is contained in:
Emilio Cobos Álvarez 2016-06-17 05:25:50 +02:00
parent f529786700
commit 818bc6d4a2
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
5 changed files with 94 additions and 3 deletions

View file

@ -13,7 +13,7 @@ def to_rust_ident(name):
def to_camel_case(ident):
return re.sub("_([a-z])", lambda m: m.group(1).upper(), ident.strip("_").capitalize())
return re.sub("(^|_|-)([a-z])", lambda m: m.group(2).upper(), ident.strip("_").strip("-"))
class Keyword(object):