Skip to content

Commit ddf77b8

Browse files
author
Dionysios Grapsas
committed
comments
1 parent df315f9 commit ddf77b8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

fortls/langserver.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1274,21 +1274,21 @@ def serve_folding_range(self, request: dict):
12741274
return None
12751275
# Construct folding_rage list
12761276
folding_ranges = []
1277-
# First treating scope objects...
1277+
# First treat scope objects ...
12781278
for scope in file_obj.ast.scope_list:
12791279
n_mlines = len(scope.mlines)
1280-
# ...with intermediate folding lines (if, select)...
1280+
# ...with intermediate folding lines (if, select case) ...
12811281
if n_mlines > 0:
12821282
self.add_range(folding_ranges, scope.sline - 1, scope.mlines[0] - 2)
12831283
for i in range(1, n_mlines):
12841284
self.add_range(
12851285
folding_ranges, scope.mlines[i - 1] - 1, scope.mlines[i] - 2
12861286
)
12871287
self.add_range(folding_ranges, scope.mlines[-1] - 1, scope.eline - 2)
1288-
# ...and without
1288+
# ...and without, ...
12891289
else:
12901290
self.add_range(folding_ranges, scope.sline - 1, scope.eline - 2)
1291-
# Then treat comment blocks
1291+
# ...and finally treat comment blocks
12921292
folds = len(folding_start)
12931293
for i in range(0, folds):
12941294
self.add_range(folding_ranges, folding_start[i] - 1, folding_end[i] - 1)

0 commit comments

Comments
 (0)