From 5944f3b0a0fb8ed406d7388e7aa8284f3b7b6899 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 5 May 2025 09:27:14 +0300 Subject: [PATCH] tools: improve show_ancient_deprecations.v, by ignoring false positives for deprecation tags in // comments --- cmd/tools/show_ancient_deprecations.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/tools/show_ancient_deprecations.v b/cmd/tools/show_ancient_deprecations.v index a959a7dc0d..572d932d16 100644 --- a/cmd/tools/show_ancient_deprecations.v +++ b/cmd/tools/show_ancient_deprecations.v @@ -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