-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix emu-format --check with multiple files (#607)
Previously, running emu-format --check with multiple files would only check the first file. Fix the CLI arguments processing logic so that the only special case for a list of one file is when it needs to be printed to stdout. Move checking into the loop through the file list, as is done with writing. Closes: #606
- Loading branch information
Showing
4 changed files
with
65 additions
and
9 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<link rel="stylesheet" href="css/elements.css"> | ||
<script src="ecmarkup.js"></script> | ||
|
||
<emu-clause id="c1"> | ||
|
||
<h1>Clause Foo( _a_, _b_ )</h1> | ||
|
||
<emu-alg> | ||
1. Call Foo(_a_). | ||
1. Call Bar(`toString`). | ||
1. Call Baz(*true*). | ||
1. Do something else. | ||
1. And again. | ||
</emu-alg> | ||
</emu-clause> |
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,16 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<link rel="stylesheet" href="css/elements.css"> | ||
<script src="ecmarkup.js"></script> | ||
|
||
<emu-clause id="c1"> | ||
<h1>Clause Foo(_a_, _b_)</h1> | ||
|
||
<emu-alg> | ||
1. Call Foo(_a_). | ||
1. Call Bar(`toString`). | ||
1. Call Baz(*true*). | ||
1. Do something else. | ||
1. And again. | ||
</emu-alg> | ||
</emu-clause> |