From b9409a7ca140f5f677b46293f0c8db52b14280d9 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Thu, 8 Nov 2012 14:34:25 +0100 Subject: Skip invalid characters when tokenizing. Emulate zconf.l w.r.t. invalid characters at different locations within a line. This eliminates the need for special hacks to handle -*help-* "tokens". The Linux 3.7.0 configuration files now parse without errors. --- kconfigtest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kconfigtest.py') diff --git a/kconfigtest.py b/kconfigtest.py index e6961a4..32d6f33 100644 --- a/kconfigtest.py +++ b/kconfigtest.py @@ -208,7 +208,7 @@ def test_call_all(conf): # Syntax error caught_exception = False try: - conf.eval("y & y") + conf.eval("y && && y") except kconfiglib.Kconfig_Syntax_Error: caught_exception = True -- cgit v1.2.3