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 2ddad2a commit 839b39aCopy full SHA for 839b39a
fortls/parsers/internal/parser.py
@@ -1137,7 +1137,7 @@ def get_code_line(
1137
def strip_comment(self, line: str) -> str:
1138
"""Strip comment from line"""
1139
if self.fixed:
1140
- if FRegex.FIXED_COMMENT.match(line) and FRegex.FIXED_OPENMP.match(line):
+ if FRegex.FIXED_COMMENT.match(line) and not FRegex.FIXED_OPENMP.match(line):
1141
return ""
1142
else:
1143
if FRegex.FREE_OPENMP.match(line) is None:
0 commit comments