Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial settings for strousrup bracket style #2161

Merged
merged 33 commits into from
Mar 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
a62219d
Bare minimal changes for one test case.
nojaf Dec 13, 2021
13de66a
Initial draft of ragnarok feature.
nojaf Dec 14, 2021
7e85edf
Add more syntax node where the case occurs.
nojaf Dec 14, 2021
b31f7be
Maybe multiline strings?
nojaf Dec 16, 2021
eb39ca1
Highlight additional cases in SynBinding.
nojaf Dec 17, 2021
afacd3a
Add new setting for ragnarok mode.
nojaf Dec 19, 2021
1c55145
Separate test case into multiple files. Implement SynBindingFunction …
nojaf Dec 19, 2021
ced9698
Add support for computation expressions.
nojaf Dec 20, 2021
b57d54e
Add support for Array/List in SynBinding value/function.
nojaf Dec 20, 2021
b4625c9
Exclude update records.
nojaf Dec 20, 2021
7c3edab
Synbinding function with return type.
nojaf Dec 20, 2021
df8dbf5
Add additional tests for type members.
nojaf Dec 21, 2021
ec08f64
Add LetOrUseBang with Expression.
nojaf Dec 21, 2021
0fc3d99
Add YieldOrReturn with Expression.
nojaf Dec 21, 2021
6d81bf5
Add YieldOrReturnBang with Expression.
nojaf Dec 22, 2021
fc2d40d
Add SynExprAndBang with Expression.
nojaf Dec 22, 2021
1218fa0
Format test files.
nojaf Dec 22, 2021
82a4522
Add tests suffix
nojaf Dec 22, 2021
d8c0468
Add LongIdentSetExpression with Expression.
nojaf Dec 22, 2021
0ab0e34
Add DotIndexedSet with Expression.
nojaf Dec 22, 2021
ad9c420
Add Set with Expression.
nojaf Dec 22, 2021
5a79dfc
Add DotSet with Expression.
nojaf Dec 22, 2021
d4ae69e
Add Lambda with Expression.
nojaf Dec 22, 2021
732640d
Add SynMatchClause with Expression.
nojaf Dec 22, 2021
97e50b5
Add SynTypeDefnSimpleRepr.Record NOTE: TESTS FAIL
nojaf Dec 22, 2021
4e44ef8
Add SynTypeDefnSigRepr.Simple
nojaf Dec 22, 2021
2442960
Use correct helper function for Set and DotSet.
nojaf Dec 22, 2021
4da94a7
Work around edge case where match clause body needs to be further ind…
nojaf Dec 22, 2021
09f04d8
Add named arguments in application and new expressions.
nojaf Dec 23, 2021
99b7eda
Fix leftover issue
Mar 7, 2022
6796d5d
Add TODO comment
Mar 17, 2022
f6b3121
Fix failing test
Mar 18, 2022
b63cd7d
Format files
Mar 18, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
544 changes: 544 additions & 0 deletions docs/ragnarok.md

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions src/Fantomas.Tests/Fantomas.Tests.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,25 @@
<Compile Include="IndexSyntaxTests.fs" />
<Compile Include="InsertFinalNewlineTests.fs" />
<Compile Include="SingleExprTests.fs" />
<Compile Include="Ragnarok\SynBindingValueExpressionTests.fs" />
<Compile Include="Ragnarok\SynBindingFunctionExpressionTests.fs" />
<Compile Include="Ragnarok\SynBindingFunctionLongPatternExpressionTests.fs" />
<Compile Include="Ragnarok\SynBindingFunctionWithReturnTypeExpressionTests.fs" />
<Compile Include="Ragnarok\LetOrUseBangExpressionTests.fs" />
<Compile Include="Ragnarok\YieldOrReturnExpressionTests.fs" />
<Compile Include="Ragnarok\YieldOrReturnBangExpressionTests.fs" />
<Compile Include="Ragnarok\SynExprAndBangExpressionTests.fs" />
<Compile Include="Ragnarok\LongIdentSetExpressionTests.fs" />
<Compile Include="Ragnarok\DotIndexedSetExpressionTests.fs" />
<Compile Include="Ragnarok\SetExpressionTests.fs" />
<Compile Include="Ragnarok\DotSetExpressionTests.fs" />
<Compile Include="Ragnarok\LambdaExpressionTests.fs" />
<Compile Include="Ragnarok\MultiLineLambdaClosingNewlineExpressionTests.fs" />
<Compile Include="Ragnarok\SynMatchClauseExpressionTests.fs" />
<Compile Include="Ragnarok\KeepIndentInBranchExpressionTests.fs" />
<Compile Include="Ragnarok\SynTypeDefnSimpleReprRecordTests.fs" />
<Compile Include="Ragnarok\SynTypeDefnSigReprSimpleTests.fs" />
<Compile Include="Ragnarok\NamedArgumentExpressionTests.fs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Fantomas.Extras\Fantomas.Extras.fsproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ let ``no extra newline after record type with no members`` () =
To : float
Name: string }
"""
config
{ config with MaxRecordWidth = 39 }
|> prepend newline
|> should
equal
Expand Down
Loading