Skip to content

Commit 1077e06

Browse files
authored
Merge pull request fortran-lang#186 from itpplasma/master
Specify the amount of spaces before inline comments
2 parents 97e799b + b2505ec commit 1077e06

4 files changed

Lines changed: 486 additions & 28 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ For more options, read
109109
fprettify -h
110110
```
111111

112+
When cleaning up inline comments, `--strip-comments` removes superfluous whitespace in front of comment markers. Combine it with `--comment-spacing N` to specify how many spaces should remain between code and the trailing comment (default: 1).
113+
112114
## Editor integration
113115

114116
For editor integration, use

examples/out/example.f90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ program example_prog
133133
do l = 1, 3
134134
do i = 4, 5
135135
do my_integer = 1, 1
136-
do j = 1, 2
137-
write (*, *) test_function(m, r, k, l) + i
138-
end do
136+
do j = 1, 2
137+
write (*, *) test_function(m, r, k, l) + i
138+
end do
139139
end do
140140
end do
141141
end do

0 commit comments

Comments
 (0)