diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-09 07:43:20 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-09 07:43:20 +0100 |
| commit | 420e5ffab5e4d0f117bcd0d6e4fc8833b9ee6e0b (patch) | |
| tree | 239248a480455e6f083cd903caa4b25458168a8a /kconfiglib.py | |
| parent | b0c5791b61463efc5f6924c0782e3c7aed5f6100 (diff) | |
Avoid registering symbols for junk after a T_HELP token.
Diffstat (limited to 'kconfiglib.py')
| -rw-r--r-- | kconfiglib.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index 9479674..f92bb24 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -633,6 +633,10 @@ class Config(): if keyword is None: # We expect a keyword as the first token _tokenization_error(s, strlen, filename, linenr) + if keyword == T_HELP: + # Avoid junk after "help", e.g. "---", being registered as a + # symbol + return _Feed([T_HELP]) append(keyword) previous = keyword |
