style: Support the all shorthand.

Fixes #15055.
This commit is contained in:
Cameron McCormack 2017-04-13 13:23:04 +08:00
parent fb26ae7df5
commit 91e2119636
3 changed files with 66 additions and 2 deletions

View file

@ -280,3 +280,6 @@ class PropertiesData(object):
self.add_prefixed_aliases(shorthand)
self.shorthands.append(shorthand)
return shorthand
def shorthands_except_all(self):
return [s for s in self.shorthands if s.name != "all"]