diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-22 15:01:05 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-22 15:01:05 -0700 |
| commit | addac10a47693a976808bf75fe63aed19f8dbb63 (patch) | |
| tree | b072998c987f86eb1ecd381fd36eee0d1e3a6091 /compatibility/2.nom | |
| parent | 4fa9757fa27d79a0cda399dcf3b711f4d0d60457 (diff) | |
Re-autoformatted everything. The main changes are: no longer adding a
newline after 1-line indented code inside blocks, and forcing files to
have a trailing newline. The trailing newline thing created a lot of
spurious changes.
Diffstat (limited to 'compatibility/2.nom')
| -rw-r--r-- | compatibility/2.nom | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/compatibility/2.nom b/compatibility/2.nom index 36917b1..a7a3afe 100644 --- a/compatibility/2.nom +++ b/compatibility/2.nom @@ -8,11 +8,9 @@ upgrade %tree to "2" as: %true_body = (%tree.3 upgraded) unless (%true_body is "Block" syntax tree): %true_body = (=lua "Block(\%true_body.source, \%true_body)") - %false_body = (%tree.5 upgraded) unless (%false_body is "Block" syntax tree): %false_body = (=lua "Block(\%false_body.source, \%false_body)") - return (..) \(if %cond %true_body else %false_body) with vars {..} cond:%tree.2 upgraded, true_body:%true_body, false_body:%false_body @@ -30,4 +28,4 @@ upgrade %tree to "2" as: %body = (last in %bits) %bits.(length of %bits) = (=lua "Block(\%body.source, \%body)") - return (=lua "Action(\%tree.source, unpack(\%bits))")
\ No newline at end of file + return (=lua "Action(\%tree.source, unpack(\%bits))") |
