mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
style: parse the remaining animation longhands.
This commit is contained in:
parent
f529786700
commit
818bc6d4a2
5 changed files with 94 additions and 3 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue