File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1377,7 +1377,8 @@ def CleanseRawStrings(raw_lines):
1377
1377
def FindNextMultiLineCommentStart (lines , lineix ):
1378
1378
"""Find the beginning marker for a multiline comment."""
1379
1379
while lineix < len (lines ):
1380
- if lines [lineix ].strip ().startswith ('/*' ):
1380
+ if (lines [lineix ].strip ().startswith ('/*' ) or
1381
+ lines [lineix ].strip ().startswith ('#if 0' )):
1381
1382
# Only return this marker if the comment goes beyond this line
1382
1383
if lines [lineix ].strip ().find ('*/' , 2 ) < 0 :
1383
1384
return lineix
@@ -1388,7 +1389,8 @@ def FindNextMultiLineCommentStart(lines, lineix):
1388
1389
def FindNextMultiLineCommentEnd (lines , lineix ):
1389
1390
"""We are inside a comment, find the end marker."""
1390
1391
while lineix < len (lines ):
1391
- if lines [lineix ].strip ().endswith ('*/' ):
1392
+ if (lines [lineix ].strip ().endswith ('*/' ) or
1393
+ lines [lineix ].strip ().endswith ('#endif' )):
1392
1394
return lineix
1393
1395
lineix += 1
1394
1396
return len (lines )
You can’t perform that action at this time.
0 commit comments