正在显示
1 个修改的文件
包含
7 行增加
和
0 行删除
| @@ -51,12 +51,19 @@ def process(f, code_file): | @@ -51,12 +51,19 @@ def process(f, code_file): | ||
| 51 | is_line_comments = False | 51 | is_line_comments = False |
| 52 | else: | 52 | else: |
| 53 | verbose("[block][cont] %s"%line) | 53 | verbose("[block][cont] %s"%line) |
| 54 | + stat_block_comments += 1 | ||
| 54 | continue | 55 | continue |
| 55 | if line.startswith("/*"): | 56 | if line.startswith("/*"): |
| 56 | verbose("[block][start] %s"%line) | 57 | verbose("[block][start] %s"%line) |
| 57 | is_block_comments = True | 58 | is_block_comments = True |
| 58 | is_line_comments = False | 59 | is_line_comments = False |
| 59 | stat_block_comments += 1 | 60 | stat_block_comments += 1 |
| 61 | + # inline block comments | ||
| 62 | + if is_block_comments: | ||
| 63 | + if "*/" in line: | ||
| 64 | + verbose("[block][end] %s"%line) | ||
| 65 | + is_block_comments = False | ||
| 66 | + is_line_comments = False | ||
| 60 | continue | 67 | continue |
| 61 | if line.startswith("//"): | 68 | if line.startswith("//"): |
| 62 | verbose("[line] %s"%line) | 69 | verbose("[line] %s"%line) |
-
请 注册 或 登录 后发表评论