minikconf: fix parser typo
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 12 Mar 2019 16:48:48 +0000 (17:48 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 20 Mar 2019 10:44:13 +0000 (11:44 +0100)
The result of this typo would be that "select_foo" would be treated as a "select"
keyword followed by "_foo".  Nothing too bad, but easy to fix so let's be clean.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
scripts/minikconf.py

index 5421db0ed04cadafb232ca287bc36a42f4e315c8..0ffc6c38da77d8935bf5d83ec4bd2271de1edc56 100644 (file)
@@ -592,7 +592,7 @@ class KconfigParser:
         if not self.src.startswith(rest, self.cursor):
             return False
         length = len(rest)
-        if self.src[self.cursor + length].isalnum() or self.src[self.cursor + length] == '|':
+        if self.src[self.cursor + length].isalnum() or self.src[self.cursor + length] == '_':
             return False
         self.cursor += length
         return True