You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When user performs the reference search (i.e., Go to /Peek /Find All References), the comments in the fixed format are not excluded from the result.
See the example below. When you perform "Find All References" to variable WORLD, the result includes the word "WORLD" in the comment that should be excluded.
The cause of this issue is rather obvious. The condition FRegex.FIXED_OPENMP.match(line) in the below code should be negated.
Describe the bug
When user performs the reference search (i.e., Go to /Peek /Find All References), the comments in the fixed format are not excluded from the result.
See the example below. When you perform "Find All References" to variable WORLD, the result includes the word "WORLD" in the comment that should be excluded.
The cause of this issue is rather obvious. The condition
FRegex.FIXED_OPENMP.match(line)
in the below code should be negated.fortls/fortls/parsers/internal/parser.py
Lines 1137 to 1141 in 3cf8f29
To Reproduce
Expected behavior
The comment should be excluded from the result of the reference search.
Screenshots & Animations
Nothing to add.
Setup information (please complete the following information):
Configuration information (please complete the following information):
Nothing special.
Additional context
I will post a PR of the suggested fix. Just a second...
The text was updated successfully, but these errors were encountered: