diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-03-27 15:22:46 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-03-27 15:22:46 -0700 |
| commit | a1849da175765350e013bdeecfa4e0ad3c066937 (patch) | |
| tree | 616a115790271757148044e2b3228fb715c00726 /lib/compatibility/2.4.nom | |
| parent | bb07e6724118c431c3beed4060776678128905a1 (diff) | |
Autoformat (mostly just to do with the new
blank-line-after-end-of-multi-indent-block rule
Diffstat (limited to 'lib/compatibility/2.4.nom')
| -rw-r--r-- | lib/compatibility/2.4.nom | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/lib/compatibility/2.4.nom b/lib/compatibility/2.4.nom index eca5d73..a035c4e 100644 --- a/lib/compatibility/2.4.nom +++ b/lib/compatibility/2.4.nom @@ -14,9 +14,7 @@ upgrade $tree to "2.4" as: return $tree $conditions = [] $new_lines = [] - $body = - $tree.2 if ($tree.2 is "Block" syntax tree) else [$tree.2] - + $body = ($tree.2 if ($tree.2 is "Block" syntax tree) else [$tree.2]) for $line in $body: when: (not ($line is "Action" syntax tree)): @@ -48,9 +46,7 @@ upgrade $tree to "2.4" as: "if 1 is ?" "if 1 = ?": $values = [] $new_lines = [] - $body = - $tree.5 if ($tree.5 is "Block" syntax tree) else [$tree.5] - + $body = ($tree.5 if ($tree.5 is "Block" syntax tree) else [$tree.5]) for $line in $body: when: (not ($line is "Action" syntax tree)): @@ -76,7 +72,4 @@ upgrade $tree to "2.4" as: $values = [] return - \( - if \($tree.2) is - \("Block" tree from $tree.5.source with (unpack $new_lines)) - ) + \(if \$tree.2 is \("Block" tree from $tree.5.source with (unpack $new_lines)))
\ No newline at end of file |
