[kernel] r10830 - people/waldi/utils/kconfigeditor2/lib/kconfigeditor/kconfig/menu
Bastian Blank
waldi at alioth.debian.org
Thu Mar 13 11:24:30 UTC 2008
Author: waldi
Date: Thu Mar 13 11:24:29 2008
New Revision: 10830
Log:
lib/kconfigeditor/kconfig/menu/file.py: Support unquoted prompts.
Modified:
people/waldi/utils/kconfigeditor2/lib/kconfigeditor/kconfig/menu/file.py
Modified: people/waldi/utils/kconfigeditor2/lib/kconfigeditor/kconfig/menu/file.py
==============================================================================
--- people/waldi/utils/kconfigeditor2/lib/kconfigeditor/kconfig/menu/file.py (original)
+++ people/waldi/utils/kconfigeditor2/lib/kconfigeditor/kconfig/menu/file.py Thu Mar 13 11:24:29 2008
@@ -133,7 +133,7 @@
def process_line(self, text):
match = self.split_re.match(text)
if not match:
- raise ParseException("No match")
+ raise ParseException("Can't find a command")
rest = match.group('rest1') or match.group('rest2')
getattr(self, "process_%s" % match.group('word'))(rest, match.group('ind'))
@@ -216,6 +216,8 @@
"(?P<text1>.*((?<=\\)".*)*)"
|
'(?P<text2>.*((?<=\\)".*)*)'
+ |
+ (?P<text3>\w+)
)
(
\s*
@@ -233,7 +235,7 @@
if text is not None:
match = self._prompt_re.match(text)
if match:
- self.entry.prompt = match.group('text1') or match.group('text2')
+ self.entry.prompt = match.group('text1') or match.group('text2') or match.group('text3')
text = match.group('expression')
else:
raise ParseException("Can't find a prompt")
More information about the Kernel-svn-changes
mailing list