minikconf: accept alnum identifiers

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Marc-André Lureau 2019-08-17 12:05:17 +04:00 committed by Paolo Bonzini
parent a284f798f3
commit 1b29af2f41

View File

@ -645,7 +645,7 @@ class KconfigParser:
self.cursor = self.src.find('\n', self.cursor) self.cursor = self.src.find('\n', self.cursor)
self.val = self.src[start:self.cursor] self.val = self.src[start:self.cursor]
return TOK_SOURCE return TOK_SOURCE
elif self.tok.isalpha(): elif self.tok.isalnum():
# identifier # identifier
while self.src[self.cursor].isalnum() or self.src[self.cursor] == '_': while self.src[self.cursor].isalnum() or self.src[self.cursor] == '_':
self.cursor += 1 self.cursor += 1