summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kconfiglib.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index a05a079..fda12c6 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -4497,8 +4497,13 @@ _get_keyword = {
"visible": _T_VISIBLE,
}.get
-# Tokens after which identifier-like lexemes are treated as strings. _T_CHOICE
-# is included to avoid symbols being registered for named choices.
+# Tokens after which strings are expected. This is used to tell strings from
+# constant symbol references during tokenization, both of which are enclosed in
+# quotes.
+#
+# Identifier-like lexemes ("missing quotes") are also treated as strings after
+# these tokens. _T_CHOICE is included to avoid symbols being registered for
+# named choices.
_STRING_LEX = frozenset((
_T_BOOL,
_T_CHOICE,