Skip to content

Commit 0f87e6a

Browse files
committed
Escape function implicit result for both start and end of scope
1 parent 25e0f3d commit 0f87e6a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fortls/objects.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def check_scope(
191191
if (
192192
isinstance(local_scope, fortran_function)
193193
and local_scope.name.lower() == child.name.lower()
194-
and local_scope.sline == var_line_number
194+
and var_line_number in (local_scope.sline, local_scope.eline)
195195
):
196196
return None
197197

@@ -1649,6 +1649,7 @@ def get_hover(self, long=False, include_doc=True, drop_arg=-1):
16491649
hover_str = ", ".join(
16501650
[self.desc] + get_keywords(self.keywords, self.keyword_info)
16511651
)
1652+
# TODO: at this stage we can mae this lowercase
16521653
# Add parameter value in the output
16531654
if self.is_parameter() and self.param_val:
16541655
hover_str += f" :: {self.name} = {self.param_val}"

0 commit comments

Comments
 (0)