diff options
author | Guillaume Rousse <guillomovitch@mandriva.org> | 2009-03-29 21:47:46 +0000 |
---|---|---|
committer | Guillaume Rousse <guillomovitch@mandriva.org> | 2009-03-29 21:47:46 +0000 |
commit | 0389e3f728699e16bb2d7b2de664a17e6bd6db22 (patch) | |
tree | 89e1bab743480e38c6f8f079a554f7183338fa08 | |
parent | e0c73b6bb4e0351cc51a11d09a76c26a725a528d (diff) | |
download | spec-helper-0389e3f728699e16bb2d7b2de664a17e6bd6db22.tar spec-helper-0389e3f728699e16bb2d7b2de664a17e6bd6db22.tar.gz spec-helper-0389e3f728699e16bb2d7b2de664a17e6bd6db22.tar.bz2 spec-helper-0389e3f728699e16bb2d7b2de664a17e6bd6db22.tar.xz spec-helper-0389e3f728699e16bb2d7b2de664a17e6bd6db22.zip |
ignore variables names protected by '\' (#49277)
-rwxr-xr-x | gprintify.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gprintify.py b/gprintify.py index b1e8a0a..abdbbf1 100755 --- a/gprintify.py +++ b/gprintify.py @@ -16,7 +16,7 @@ import re echo_regex=re.compile('^(.*)echo +(-[en]+)?') string_regex=re.compile('^([^"]*?)\$?"([^"]*[^\\\\])"([^>\|\[\]]*|.*\|\|.*)$') -var_regex=re.compile('(\$[a-zA-Z0-9_{}]+(?:\[\$[a-zA-Z0-9_{}]+\])?}?)') +var_regex=re.compile('(?<!\\\)(\$[a-zA-Z0-9_{}]+(?:\[\$[a-zA-Z0-9_{}]+\])?}?)') init_func_regex=re.compile('(.*(action|success|failure|passed)\s*.*)') def process_start(start): |