Browse Source

minikconf: fix parser typo

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>
Paolo Bonzini 6 years ago
parent
commit
67163caeba
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scripts/minikconf.py

+ 1 - 1
scripts/minikconf.py

@@ -592,7 +592,7 @@ def check_keyword(self, rest):
         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