-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fmt: wrap exps into oneline if possible (#619)
* FIx sail-fmt block_comment indent * fmt * update test case * add test case * fmt: wrap exps into oneline if possibly
- Loading branch information
Showing
10 changed files
with
313 additions
and
45 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
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,4 +1,13 @@ | ||
default Order dec | ||
|
||
/*! first line comment | ||
indent many | ||
last line comment*/ | ||
/*! first line comment | ||
indent many | ||
last line comment*/ | ||
/*! first line comment | ||
indent many | ||
last line comment*/ | ||
/*! A documentation comment */ | ||
val main : unit -> unit |
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 |
---|---|---|
@@ -0,0 +1,93 @@ | ||
function f b = if b == bitone then { bitzero } else { bitone } | ||
function f b = if b == bitone then { bitzero } else { bitone } | ||
function f b = if b == bitone then { | ||
let a = 1; | ||
bitzero | ||
} else { bitone } | ||
|
||
function f b = if b == bitone then { { bitzero } } else { bitone } | ||
function f b = if b == bitone then { { { bitzero } } } else { bitone } | ||
function f b = if b == bitone then { | ||
{ | ||
let a = 1; | ||
bitzero | ||
} | ||
} else { bitone } | ||
function f b = if b == bitone then { | ||
{ | ||
{ | ||
let a = 1; | ||
bitzero | ||
} | ||
} | ||
} else { bitone } | ||
function f b = if b == bitone then { | ||
{ | ||
{ | ||
{ | ||
let a = 1; | ||
bitzero | ||
} | ||
} | ||
} | ||
} else { | ||
{ | ||
{ | ||
{ | ||
let a = 1; | ||
bitone | ||
} | ||
} | ||
} | ||
} | ||
function f b = if b == bitone then { | ||
{ | ||
{ | ||
{ | ||
let a = 1; | ||
bitzero | ||
} | ||
} | ||
} | ||
} else { { { bitone } } } | ||
function f b = if b == bitone then { | ||
{ | ||
{ | ||
{ | ||
let a = 1; | ||
bitzero | ||
} | ||
} | ||
} | ||
} else { | ||
{ | ||
let a = 1; | ||
{ bitone } | ||
} | ||
} | ||
|
||
/* comment */ | ||
function f /* comment */ b = if b == bitone then { bitzero } else { bitone } | ||
function f /* comment */ b = if b == bitone then { bitzero } else { bitone } | ||
function f b = /* comment */ if b == bitone then { bitzero } else { bitone } | ||
function f b = /* comment */ if b == bitone then { bitzero } else { bitone } | ||
|
||
// TODO function f b =/* comment */if b == bitone then bitzero else bitone | ||
function f b = if /* comment */ b == bitone then { bitzero } else { bitone } | ||
function f b = if b == /* comment */ bitone then { bitzero } else { bitone } | ||
function f b = if b == /* comment */ bitone then { bitzero } else { bitone } | ||
|
||
// TODO function f b = if b ==/* comment */bitone then bitzero else bitone | ||
function f b = if b == bitone /* comment */ then { bitzero } else { bitone } | ||
function f b = if b == bitone then { | ||
/* comment */ bitzero | ||
} else { bitone } | ||
function f b = if b == bitone then { | ||
bitzero /* comment */ | ||
} else { bitone } | ||
function f b = if b == bitone then { | ||
bitzero /* comment */ | ||
} else { bitone } | ||
function f b = if b == bitone then { | ||
bitzero /* comment */ | ||
} else { bitone } |
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,17 @@ | ||
default Order dec | ||
|
||
/*! A documentation comment */ | ||
/*! first line comment | ||
indent many | ||
last line comment*/ | ||
|
||
/*! first line comment | ||
indent many | ||
last line comment*/ | ||
|
||
/*! first line comment | ||
indent many | ||
last line comment*/ | ||
|
||
val main : | ||
unit -> unit | ||
/*! A documentation comment */ | ||
val main : | ||
unit -> unit |
Oops, something went wrong.