Blame SOURCES/0121-types-skip-field-lines-that-start-with-comments.patch

760e82
From 05747ff8f8a3533e4db69eb359be9ed1ae920ebd Mon Sep 17 00:00:00 2001
760e82
From: "Dmitry V. Levin" <ldv@altlinux.org>
760e82
Date: Tue, 16 Jun 2020 08:00:00 +0000
760e82
Subject: [PATCH 121/138] types: skip field lines that start with comments
760e82
760e82
This allows to exclude certain fields from type checks by placing
760e82
comments at the beginning of the corresponding lines.
760e82
760e82
* types/find_last_type_fields.awk: Skip lines starting with spaces
760e82
followed by "/".
760e82
---
760e82
 types/find_last_type_fields.awk | 2 +-
760e82
 1 file changed, 1 insertion(+), 1 deletion(-)
760e82
760e82
diff --git a/types/find_last_type_fields.awk b/types/find_last_type_fields.awk
760e82
index 4c0da0f..d0cae0d 100644
760e82
--- a/types/find_last_type_fields.awk
760e82
+++ b/types/find_last_type_fields.awk
760e82
@@ -17,7 +17,7 @@
760e82
 		print a[1] "." last_field
760e82
 		next
760e82
 	}
760e82
-	if (match($0, /^[[:space:]]+[^];:[]+[[:space:]]+([^][:space:];:[]+)(\[[^];:[]*\])?;.*$/, a)) {
760e82
+	if (match($0, /^[[:space:]]+[^];[:space:]:\/[][^];:[]*[[:space:]]+([^][:space:];:[]+)(\[[^];:[]*\])?;.*$/, a)) {
760e82
 		last_field = a[1]
760e82
 		next
760e82
 	}
760e82
-- 
760e82
2.1.4
760e82