Commit 086e8a98 authored by sparonuz's avatar sparonuz
Browse files

Now openMP clause are kept and not removed as comments.

parent 75905614
...@@ -143,6 +143,8 @@ def literal_mask(string): ...@@ -143,6 +143,8 @@ def literal_mask(string):
def remove_comments(string): def remove_comments(string):
# Trying to use a rarely used character ({) for the temporal replacement # Trying to use a rarely used character ({) for the temporal replacement
if string.count("!"): if string.count("!"):
if string.count('$OMP'):
return string
# In the case where there's quotes in the text, we should ignore the exclamations inside # In the case where there's quotes in the text, we should ignore the exclamations inside
if not string.count("'") and not string.count('"'): if not string.count("'") and not string.count('"'):
string = string[:string.find("!")] string = string[:string.find("!")]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment