mirror of
https://github.com/ossrs/srs.git
synced 2025-02-14 20:31:56 +00:00
update code stat
This commit is contained in:
parent
5e806d62bb
commit
f5f29e486f
1 changed files with 7 additions and 0 deletions
|
@ -51,12 +51,19 @@ def process(f, code_file):
|
|||
is_line_comments = False
|
||||
else:
|
||||
verbose("[block][cont] %s"%line)
|
||||
stat_block_comments += 1
|
||||
continue
|
||||
if line.startswith("/*"):
|
||||
verbose("[block][start] %s"%line)
|
||||
is_block_comments = True
|
||||
is_line_comments = False
|
||||
stat_block_comments += 1
|
||||
# inline block comments
|
||||
if is_block_comments:
|
||||
if "*/" in line:
|
||||
verbose("[block][end] %s"%line)
|
||||
is_block_comments = False
|
||||
is_line_comments = False
|
||||
continue
|
||||
if line.startswith("//"):
|
||||
verbose("[line] %s"%line)
|
||||
|
|
Loading…
Reference in a new issue