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

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