diff --git a/.gitignore b/.gitignore index 4a18d79..fc5be22 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ build/ *.egg-info/ dist/ +tests/config_test* diff --git a/kconfiglib.py b/kconfiglib.py index ce40eb7..7c75b80 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -3151,6 +3151,8 @@ def _parse_props(self, node): node.dep = self._make_and(node.dep, self._expect_expr_and_eol()) + elif t0 is _T_TRANSITIONAL: + continue elif t0 is _T_HELP: self._parse_help(node) @@ -7010,9 +7012,10 @@ def _shell_fn(kconf, _, command): _T_SOURCE, _T_STRING, _T_TRISTATE, + _T_TRANSITIONAL, _T_UNEQUAL, _T_VISIBLE, -) = range(1, 51) +) = range(1, 52) # Keyword to token map, with the get() method assigned directly as a small # optimization @@ -7059,6 +7062,7 @@ def _shell_fn(kconf, _, command): "source": _T_SOURCE, "string": _T_STRING, "tristate": _T_TRISTATE, + "transitional": _T_TRANSITIONAL, "visible": _T_VISIBLE, }.get