fortls icon indicating copy to clipboard operation
fortls copied to clipboard

Two bugs in parsing related to parentheses in strings

Open certik opened this issue 3 years ago • 0 comments

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 avatar Dec 12 '22 11:12 certik