You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module
#if DEBUG
#elseinternal#endif
A =letf x = x + x
Result
module
#if DEBUG
#elseinternal#endif
A =letf x = x + x
Problem description
As can be seen above, the correct indentation isn't maintained for the accessibility modifier or module name when surrounded by compiler conditionals. The below alternative is a successful workaround:
#if DEBUG
moduleA =#elsemoduleinternalA =#endif
Extra information
The formatted result breaks my code.
The formatted result gives compiler warnings.
I or my company would be willing to help fix this.
Options
Fantomas main branch at 1/1/1990 <- incorrect date is shown on the online editor
Default Fantomas configuration
Did you know that you can ignore files when formatting from fantomas-tool or the FAKE targets by using a .fantomasignore file?
The text was updated successfully, but these errors were encountered:
Hello @roboz0r,
thanks for opening this issue. We handle this correctly for types, but as you see, not for modules.
Maybe this gets you going in the right direction to fix this yourself. Most likely we would need to apply the same trick here as for types.
Issue created from fantomas-online
Code
Result
Problem description
As can be seen above, the correct indentation isn't maintained for the accessibility modifier or module name when surrounded by compiler conditionals. The below alternative is a successful workaround:
Extra information
Options
Fantomas main branch at 1/1/1990 <- incorrect date is shown on the online editor
Default Fantomas configuration
Did you know that you can ignore files when formatting from fantomas-tool or the FAKE targets by using a .fantomasignore file?
The text was updated successfully, but these errors were encountered: