diff options
Diffstat (limited to 'scripts/format_doxygen.py')
-rwxr-xr-x | scripts/format_doxygen.py | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/scripts/format_doxygen.py b/scripts/format_doxygen.py index 64fe7ecbce..da52f7e2a3 100755 --- a/scripts/format_doxygen.py +++ b/scripts/format_doxygen.py @@ -137,15 +137,19 @@ if __name__ == "__main__": # Match end of C-style comment */ if re.search(r"\*/", line): - #print("End comment {}".format(n_line)) + if re.search('"[^"]*\*/[^"]*"', line): + #print("End of comment inside a string: ignoring") + pass + else: + #print("End comment {}".format(n_line)) - if len(comment) < 1: - raise Exception("Was not in a comment! ({})".format(n_line)) + if len(comment) < 1: + raise Exception("Was not in a comment! ({})".format(n_line)) - #print("Process comment {} {}".format(first_param, last_param)) + #print("Process comment {} {}".format(first_param, last_param)) - process_comment(fd, comment, first_param, last_param) + process_comment(fd, comment, first_param, last_param) - comment = list() - first_param = -1 - last_param = -1 + comment = list() + first_param = -1 + last_param = -1 |