Commit 4f7aaf78 authored by Stefan Behnel's avatar Stefan Behnel

discard all 1-line /*comments*/ from utility C code (not just at the beginning of a line)

parent 7d4f6b3d
......@@ -154,7 +154,7 @@ class UtilityCodeBase(object):
replace_comments = re.compile(r'^\s*#.*').sub
else:
comment = '/'
replace_comments = re.compile(r'^\s*//.*|^\s*/\*[^*]*\*/').sub
replace_comments = re.compile(r'^\s*//.*|/\*[^*]*\*/').sub
match_special = re.compile(
(r'^%(C)s{5,30}\s*(?P<name>(?:\w|\.)+)\s*%(C)s{5,30}|'
r'^%(C)s+@(?P<tag>\w+)\s*:\s*(?P<value>(?:\w|[.:])+)'
......
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