Commits

Victor Kotseruba  committed 1ca57c7

several expressions can be used as property value

  • Participants
  • Parent commits 734a96d

Comments (0)

Files changed (1)

         PROP_KEY= Regex(r'(?::[\w-]+|[\w-]+:)').addParseAction(strip_name)
         PROP = Group(PROP_KEY + White(' ').suppress() + Group(OneOrMore(Word(printables)))) + ENDL
         PROP_KEY_EXPR = Regex(r':?[\w-]+').addParseAction(strip_name)
-        PROP_EXPR = Group(PROP_KEY_EXPR + White(' ').suppress() + Suppress('=') + EXPRESSION) + ENDL
+        PROP_EXPR = Group(PROP_KEY_EXPR + White(' ').suppress() + Suppress('=') + OneOrMore(Group(EXPRESSION))) + ENDL
         PROP_PREFIX = (Suppress(':') + Word(alphas + '-')) | (Word(alphas + '-') + Suppress(':')) + ENDL
         PREFIX_NODE = Forward()
         prefix_node_suit = PROP_EXPR | PROP | LineEnd().suppress()
 
     tree = parse_sass("""
 
+body
+    margin = 1px 2px 3px + 44px
+
 @for !i from 1 to 2
     .test-#{!i}
         color: red
 @if !i + 1
     .test
         color: red
-@else if !i
+@else if !a
     +empty(1, 2)
 @else
-    body
-        :font
-            :size 15px
+    @for !k from 1 to 10
+        .test-#{!k}
+            :display none
 
 =empty
     :display block