From 6792a6d1ef5ea3dabf3ebf347a8db8b562b59f24 Mon Sep 17 00:00:00 2001 From: "Luis R. Rodriguez" Date: Thu, 6 Nov 2014 12:16:33 -0800 Subject: [PATCH] backports: grant parsers access to kconfig config and menuconfig Allow parsers to query the type of option used, either config or menuconfig. This will be used later. Signed-off-by: Luis R. Rodriguez --- lib/kconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kconfig.py b/lib/kconfig.py index 179121a55d63..356263087be8 100644 --- a/lib/kconfig.py +++ b/lib/kconfig.py @@ -7,7 +7,7 @@ import os, re src_line = re.compile(r'^\s*source\s+"?(?P[^\s"]*)"?\s*$') tri_line = re.compile(r'^(?P\s+)tristate') bool_line = re.compile(r'^(?P\s+)bool') -cfg_line = re.compile(r'^(config|menuconfig)\s+(?P[^\s]*)') +cfg_line = re.compile(r'^(?Pconfig|menuconfig)\s+(?P[^\s]*)') sel_line = re.compile(r'^(?P\s+)select\s+(?P[^\s]*)\s*$') backport_line = re.compile(r'^\s+#(?P[ch]-file|module-name)\s*(?P.*)') -- 2.30.2