summaryrefslogtreecommitdiff
path: root/kconfiglib.py
diff options
context:
space:
mode:
Diffstat (limited to 'kconfiglib.py')
-rw-r--r--kconfiglib.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index 60c8eaa..9d4ebd7 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -2084,6 +2084,14 @@ class Kconfig(object):
# tristate unquoted_prompt
#
# endmenu
+ #
+ # Named choices ('choice FOO') also end up here.
+
+ if token is not _T_CHOICE:
+ self._warn("style: quotes recommended around '{}' in '{}'"
+ .format(name, self._line.strip()),
+ self._filename, self._linenr)
+
token = name
i = match.end()