Commit dc83870
committed
Fix indentation of module declaration with hash directives
When hash directives surrounded the access modifier in a module
declaration, the access modifier and module name lost their indentation.
Wrapping the post-keyword content with indent/unindent preserves correct
indentation when directive trivia forces newlines.
Fixes fsprojects#31881 parent ebc4f8e commit dc83870
File tree
3 files changed
+27
-0
lines changed- src
- Fantomas.Core.Tests
- Fantomas.Core
3 files changed
+27
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1088 | 1088 | | |
1089 | 1089 | | |
1090 | 1090 | | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4050 | 4050 | | |
4051 | 4051 | | |
4052 | 4052 | | |
| 4053 | + | |
4053 | 4054 | | |
4054 | 4055 | | |
4055 | 4056 | | |
4056 | 4057 | | |
| 4058 | + | |
4057 | 4059 | | |
4058 | 4060 | | |
4059 | 4061 | | |
| |||
0 commit comments