mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03: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
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ fn main() {
|
|||
}
|
||||
lines := file_content.split_into_lines()
|
||||
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
|
||||
if line.contains('\tif ') {
|
||||
continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue