Docstrings in fixed format code should ignore the whitespace at the beginning which is reserved for comment, label, and line continuation markers.
To Reproduce
SUBROUTINE MYFUNC(PARAM1)
!> THIS IS AN EXAMPLE FUNCTION TO DEMONSTRATE
!! THE BROKEN PARSING OF
!! DOCSTRINGS FOR FIXED FORMAT CODE
REAL, INTENT(IN) :: PARAM1
!> THE SAME PROBLEM OCCURS
!! FOR DOCSTRINGS FOR PARAMETERS
END SUBROUTINE MYFUNC
the problem does not occur if I align the comment markers at the start
SUBROUTINE MYFUNC(PARAM1)
!> THIS IS AN EXAMPLE FUNCTION TO DEMONSTRATE
!! THE BROKEN PARSING OF
!! DOCSTRINGS FOR FIXED FORMAT CODE
REAL, INTENT(IN) :: PARAM1
!> THE SAME PROBLEM OCCURS
!! FOR DOCSTRINGS FOR PARAMETERS
END SUBROUTINE MYFUNC
Expected behavior
ignore the 6 spaces at the start
Setup information
- Python Version 3.14.6
- fortls Version 3.2.2
- VSCode
- Modern Fortran v4.0.0
Docstrings in fixed format code should ignore the whitespace at the beginning which is reserved for comment, label, and line continuation markers.
To Reproduce
the problem does not occur if I align the comment markers at the start
Expected behavior
ignore the 6 spaces at the start
Setup information