Match compiler: Workaround broken code generation for "!!foo" patterns

This is just meant for the upcoming release.
This commit is contained in:
Thomas Jarosch 2013-01-09 19:25:21 +01:00
parent e1be85a552
commit 97e1e50139
1 changed files with 6 additions and 0 deletions

View File

@ -339,6 +339,12 @@ class MatchCompiler:
break # Non-const pattern - bailout break # Non-const pattern - bailout
pattern = res.group(1) pattern = res.group(1)
# TODO: We currently generate incorrect code for "!!" patterns
# skip them for now until this is fixed
if pattern.find("!!") != -1:
break
line = self._replaceSpecificTokenMatch(is_simplematch, line, pos1, end_pos, pattern, tok, varId) line = self._replaceSpecificTokenMatch(is_simplematch, line, pos1, end_pos, pattern, tok, varId)
return line return line