We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 839b39a commit e363056Copy full SHA for e363056
test/test_server_references.py
@@ -51,3 +51,12 @@ def test_references():
51
[free_path, 78, 6, 12],
52
),
53
)
54
+
55
56
+def test_references_ignore_comments_fixed():
57
+ string = write_rpc_request(1, "initialize", {"rootPath": str(test_dir / "fixed")})
58
+ file_path = test_dir / "fixed" / "comment_as_reference.f"
59
+ string += ref_req(file_path, 3, 22)
60
+ errcode, results = run_request(string)
61
+ assert errcode == 0
62
+ assert len(results[1]) == 2
test/test_source/fixed/comment_as_reference.f
@@ -0,0 +1,5 @@
1
+ program comment_as_reference
2
+C Comment with variable name gets picked as a ref: variable_to_reference
3
+ real variable_to_reference
4
+ variable_to_reference = 1
5
+ end program comment_as_reference
0 commit comments