Permalink
Browse files

Able to format every node of json-template.js

  • Loading branch information...
1 parent 389f571 commit 19b21fa83c91294ffa4ea404eb7216bf402b83c5 Andy Chu committed Dec 26, 2009
Showing with 14 additions and 9 deletions.
  1. +14 −9 codegen/sexp.py
View
@@ -71,17 +71,22 @@ def Fail(value):
}{.newline}
{.or for}
- for ({setup|template SELF}; {#}
- {condition|template SELF}; {#}
- {update|template SELF}) {.meta-left} {.newline}
- {body|template SELF}
- } {.newline}
+ for ({setup|template SELF}; {#}
+ {condition|template SELF}; {#}
+ {update|template SELF}) {.meta-left} {.newline}
+ {body|template SELF}
+ } {.newline}
+
+ {.or FOR_IN}
+ for ({iterator|template SELF} in {object|template SELF}) {
+ {body|template SELF}
+ } {.newline}
{.or while}
- while ({condition|template SELF}) {#}
- {
- {body|template SELF}
- } {.newline}
+ while ({condition|template SELF}) {#}
+ {
+ {body|template SELF}
+ } {.newline}
{.or if}
if ({condition|template SELF}) {.meta-left}{.newline}

0 comments on commit 19b21fa

Please sign in to comment.