Skip to content

Commit 289daca

Browse files
kparzyszMeinersbur
andauthored
use re.I instead of [Xx] for each letter
Co-authored-by: Michael Kruse <[email protected]>
1 parent ed9457c commit 289daca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/test/Semantics/test_symbols.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# Strips out blank lines and all comments except for "!DEF:", "!REF:", "!$acc" and "!$omp"
3030
with open(src, "r") as text_in:
3131
for line in text_in:
32-
text = re.sub(r"!(?![DR]EF:|\$[Oo][Mm][Pp]|\$[Aa][Cc][Cc]).*", "", line)
32+
text = re.sub(r"!(?![DR]EF:|\$omp|\$acc).*", "", line, re.I)
3333
text = re.sub(r"^\s*$", "", text)
3434
diff1 += text
3535

0 commit comments

Comments
 (0)