Bug 797794 - Preprocessor.py -Fslashslash does'nt work. r=ted

This commit is contained in:
Taro Matsuzawa 2012-11-08 10:36:21 +09:00
parent fe6567581a
commit 33ebcc73d6

View File

@ -382,6 +382,8 @@ class Preprocessor:
# slashslash
# Strips everything after //
def filter_slashslash(self, aLine):
if (aLine.find('//') == -1):
return aLine
[aLine, rest] = aLine.split('//', 1)
if rest:
aLine += '\n'