-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
futhark fmt: remove trailing comment machinery.
It was too complicated and too weird and I'm not convinced it produced appreciably nicer output.
- Loading branch information
Showing
8 changed files
with
67 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
|
||
-- another comment | ||
|
||
def f x = x + 2 | ||
def f x = (--comment in paren | ||
x + 2) | ||
|
||
-- and a final one |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,8 @@ | |
|
||
-- another comment | ||
|
||
def f x = x + 2 | ||
def f x = | ||
(--comment in paren | ||
x + 2) | ||
|
||
-- and a final one |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,19 @@ | ||
-- Here is one comment | ||
-- Now I'll add some code | ||
|
||
type test = (i32, i32) -- here we have a trailing comments | ||
type test = (i32, i32) | ||
|
||
-- here we have a trailing comments | ||
|
||
-- lets add some more code | ||
|
||
def record = | ||
{ a = 1 -- trying trailing | ||
, b = 2 -- in multiline comment | ||
, | ||
{ a = 1 | ||
, -- trying trailing | ||
b = 2 | ||
, -- in multiline comment | ||
-- also a test comment here | ||
c = 3 -- one last comment | ||
c = 3 | ||
} | ||
|
||
-- one last comment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
def a = | ||
( 0 | ||
, | ||
-- Test 0 | ||
1 -- Test 1 | ||
, -- Test 0 | ||
1 | ||
) | ||
|
||
-- Test 1 | ||
|
||
def b = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,8 @@ def main = | |
let x = {a, b, c} | ||
let {a,b,c} = x | ||
let {a=a,b=b,c=c} = x | ||
let x = {a = a | ||
, b = | ||
b, | ||
c} | ||
in x |