-
-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Labels
bugSomething isn't workingSomething isn't workinglsp/hoverIssues related with hovering requestsIssues related with hovering requests
Description
Describe the bug
Due to the way fortls parses Doxygen style comments they could appear in unexpected places if a developer is not careful about using !> comments.
To Reproduce
In the following example:
subroutine sub_before
integer :: i
!> Trying to add a docstring to an expression
i = 1
end subroutine
subroutine sub_no_doc
end subroutineThe comment !> Trying to add a docstring to an expression is added as a docstring to sub_no_doc.
Expected behavior
When building the AST, pendic_doc should probably be cleared when something other than subroutine / function / type / module appears.
See also #212 (comment)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinglsp/hoverIssues related with hovering requestsIssues related with hovering requests