We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Triple slash comments for an Enum get removed for all but first case.
https://jindraivanek.gitlab.io/fantomas-ui/#?code=C4TwDgpgBAglC8AoKKoHoNQMIHsC2eEAdsFAGY4BO2AhgM4RwC0UYlEDlAbhACbKoAPrQZx4UAAwCUGNNnyES5KiIgAhKC3Z4cPfqijCs9dQigBGaeky4CxUhWrGGWTVBoAbOjijbdfKyMTV3EAJiA
Given following sample.fs:
sample.fs
type A = /// Comment for CaseA - preserved | CaseA = 0 /// Comment for CaseB - removed | CaseB = 1 /// Comment for CaseC - also removed | CaseC = 2
Run fantomas sample.fs, result is:
fantomas sample.fs
type A = /// Comment for CaseA - preserved | CaseA = 0 | CaseB = 1 | CaseC = 2
Same applies to double slash comments:
type A = // Comment for CaseA - preserved | CaseA = 0 // Comment for CaseB - removed | CaseB = 1 // Comment for CaseC - also removed | CaseC = 2
But if you make it an union, it works ok:
type A = /// Comment for CaseA - preserved | CaseA /// Comment for CaseB - all preserved now | CaseB /// Comment for CaseC - all preserved now | CaseC
The text was updated successfully, but these errors were encountered:
Generate Trivia for Enum cases - fixes fsprojects#572
94d3144
9f349df
No branches or pull requests
Description
Triple slash comments for an Enum get removed for all but first case.
Repro code
https://jindraivanek.gitlab.io/fantomas-ui/#?code=C4TwDgpgBAglC8AoKKoHoNQMIHsC2eEAdsFAGY4BO2AhgM4RwC0UYlEDlAbhACbKoAPrQZx4UAAwCUGNNnyES5KiIgAhKC3Z4cPfqijCs9dQigBGaeky4CxUhWrGGWTVBoAbOjijbdfKyMTV3EAJiA
Given following
sample.fs
:Run
fantomas sample.fs
, result is:Same applies to double slash comments:
But if you make it an union, it works ok:
The text was updated successfully, but these errors were encountered: