Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Semicolon not recognized in if-clause #127

Closed
AlKa93 opened this issue Jul 11, 2019 · 2 comments
Closed

Semicolon not recognized in if-clause #127

AlKa93 opened this issue Jul 11, 2019 · 2 comments
Labels

Comments

@AlKa93
Copy link

AlKa93 commented Jul 11, 2019

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.

@hansec hansec closed this as completed in 5f261dc Jul 11, 2019
@hansec hansec added the bug label Jul 11, 2019
@hansec
Copy link
Owner

hansec commented Jul 11, 2019

Thanks for the report. This should now be fixed in master and will be included in the next patch. Let me know if you continue to see this or any other issues.

@AndreHorst
Copy link

THANKS! Found that one too, but the semicolon was in a #include statement, so I thought it had something to do with the preprocessor thing.

includes
Looking forward to the patch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants