Skip to content

Commit

Permalink
Able to format every node of json-template.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Chu committed Dec 26, 2009
1 parent 389f571 commit 19b21fa
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions codegen/sexp.py
Expand Up @@ -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}
Expand Down

0 comments on commit 19b21fa

Please sign in to comment.