localmodconfig: Recognize more keywords that end a menu entry
[cascardo/linux.git] / scripts / kconfig / streamline_config.pl
index 7036ae3..64d750c 100755 (executable)
@@ -256,8 +256,8 @@ sub read_kconfig {
 
            $iflevel-- if ($iflevel);
 
-       # stop on "help"
-       } elsif (/^\s*help\s*$/) {
+       # stop on "help" and keywords that end a menu entry
+       } elsif (/^\s*help\s*$/ || /^(comment|choice|menu)\b/) {
            $state = "NONE";
        }
     }