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

Two bugs in parsing related to parentheses in strings #250

Closed
certik opened this issue Dec 12, 2022 · 0 comments · Fixed by #400
Closed

Two bugs in parsing related to parentheses in strings #250

certik opened this issue Dec 12, 2022 · 0 comments · Fixed by #400
Labels
bug Something isn't working parser: native Issues related with the native parser of fortls

Comments

@certik
Copy link
Member

certik commented Dec 12, 2022

This code:

program testX
real(4) :: x
real(int(sin(0.5))+8+len("ab((c")-3) :: y
end program

and this code:

program testX
real(4) :: x
real(int(sin(0.5))+8+len("ab))c")-3) :: y
end program

Both give an incorrect type when you hover over "y", I think one gives real(int(sin(0.5))+8+len("ab)) and the other one gives real(int(sin(0.5))+8+len("abc") or something like that.

@certik certik added the bug Something isn't working label Dec 12, 2022
@gnikit gnikit added the parser: native Issues related with the native parser of fortls label Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working parser: native Issues related with the native parser of fortls
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants