Skip to content

Semicolon not recognized in if-clause #127

Closed
@AlKa93

Description

The first program is interpreted correctly - no errors.

program test1
integer ::  a
a=0; a=1;
end program test1

The second one says "unexpected end of scope" at the endif.

program test2
integer ::  a
logical ::  l
if(l) then; a=0
elseif(.not.l) then; a=1
endif
end program test2

So formatting if-clauses with semicolons confuses fortls and makes reference links useless. This is very annoying.

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions