mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +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
|
is_line_comments = False
|
||||||
else:
|
else:
|
||||||
verbose("[block][cont] %s"%line)
|
verbose("[block][cont] %s"%line)
|
||||||
|
stat_block_comments += 1
|
||||||
continue
|
continue
|
||||||
if line.startswith("/*"):
|
if line.startswith("/*"):
|
||||||
verbose("[block][start] %s"%line)
|
verbose("[block][start] %s"%line)
|
||||||
is_block_comments = True
|
is_block_comments = True
|
||||||
is_line_comments = False
|
is_line_comments = False
|
||||||
stat_block_comments += 1
|
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
|
continue
|
||||||
if line.startswith("//"):
|
if line.startswith("//"):
|
||||||
verbose("[line] %s"%line)
|
verbose("[line] %s"%line)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue