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

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