Skip to content

Commit fc61846

Browse files
committed
refactor: better document symbol skip condition
1 parent 709622d commit fc61846

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fortls/langserver.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,9 @@ def map_types(type, in_class: bool = False):
303303
for scope in file_obj.ast.get_scopes():
304304

305305
if (
306-
not scope.name
307-
or scope.name[0] == "#"
308-
or scope.get_type() == SELECT_TYPE_ID
306+
not scope.name # Skip empty strings
307+
or scope.name.startswith("#") # Skip comments
308+
or scope.get_type() == SELECT_TYPE_ID # Skip select types
309309
):
310310
continue
311311
scope_tree = scope.FQSN.split("::")

0 commit comments

Comments
 (0)