Lahey/Fujitsu Fortran

!#region Statement

Description

The !#region statement denotes the starting line of a user-defined Collapsible region. The ending line is indicated by the endregion statement. Collapsible regions are an editing feature that allows the user to collapse code blocks to improve readability and for easier navigation through a source code document.

Syntax

!#region [region-description]
... !#endregion Where:

region-description is a brief description of what is within the region.

Remarks

Region statements may may be nested.

Example

integer :: i, j !#region Outer do loop do i=1, 10 if(i < 3) cycle ! cycles outer !#region Inner do loop do j=1, 10 if (i < j) exit ! cycles inner if (i > j) cycle outer ! cycles to outer end do inner !#endregion end do outer !#endregion

See Also

Collapsible Regions