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

END variable closes scope prematurely #9

Closed
gnikit opened this issue Dec 31, 2021 · 0 comments · Fixed by #10
Closed

END variable closes scope prematurely #9

gnikit opened this issue Dec 31, 2021 · 0 comments · Fixed by #10
Assignees
Labels
bug Something isn't working

Comments

@gnikit
Copy link
Member

gnikit commented Dec 31, 2021

Introduced via 477d095, when process_file end scope test was edited.
Now we using a variable with the name end will cause the scope to end.

MWE

program diag
    implicit none
    integer :: end
    if (.true.) then
        end = 10
    end if
end program diag
@gnikit gnikit added the bug Something isn't working label Dec 31, 2021
@gnikit gnikit self-assigned this Dec 31, 2021
gnikit added a commit that referenced this issue Jan 1, 2022
Fixes END variable closes scope prematurely #9

The solution is to perform a negative lookahead for non-word characters
@gnikit gnikit mentioned this issue Jan 1, 2022
@gnikit gnikit closed this as completed in #10 Jan 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant