-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't collapse compound type field if it contains comments (#906)
* Add test case * Don't collapse compound type field if it contains types
- Loading branch information
1 parent
f78c063
commit e4952b1
Showing
4 changed files
with
22 additions
and
1 deletion.
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,6 @@ | ||
-- https://github.com/JohnnyMorganz/StyLua/issues/893 | ||
type Foo = { | ||
Status: "loading" -- loading | ||
| "error" -- error | ||
| "success" -- success | ||
} |
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,11 @@ | ||
--- | ||
source: tests/tests.rs | ||
expression: format(&contents) | ||
input_file: tests/inputs-luau/type-tables-comments-2.lua | ||
--- | ||
-- https://github.com/JohnnyMorganz/StyLua/issues/893 | ||
type Foo = { | ||
Status: "loading" -- loading | ||
| "error" -- error | ||
| "success", -- success | ||
} |