File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments