Commits

Virgil Dupras committed 117d99e

Support shortcuts involving the '+' character.

  • Participants
  • Parent commits 2d4bba4

Comments (0)

Files changed (1)

xibless/property.py

     def _setProperty(self, target, value):
         if not value:
             return
-        elements = set(value.lower().split('+'))
+        if value.endswith('++'):
+            # We have a shortcut with a + sign in it, which messes with our parsing. Make a special
+            # case.
+            elements = set(value[:-2].lower().split('+')) | {'+', }
+        else:
+            elements = set(value.lower().split('+'))
         flags = Flags()
         for ident, flag in SHORTCUT_FLAGS:
             if ident in elements: