mirror of
https://github.com/vlang/v.git
synced 2025-09-18 03:46:36 -04:00
tools: improve show_ancient_deprecations.v, by ignoring false positives for deprecation tags in // comments
This commit is contained in:
parent
84e2fd8c51
commit
5944f3b0a0
@ -55,7 +55,7 @@ fn main() {
|
|||||||
}
|
}
|
||||||
lines := file_content.split_into_lines()
|
lines := file_content.split_into_lines()
|
||||||
for line_num := lines.len - 1; line_num > 0; line_num-- {
|
for line_num := lines.len - 1; line_num > 0; line_num-- {
|
||||||
line := lines[line_num]
|
line := lines[line_num].all_before('//')
|
||||||
mut is_deprecation_line := false
|
mut is_deprecation_line := false
|
||||||
if line.contains('\tif ') {
|
if line.contains('\tif ') {
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user