Mercurial > hg > CbC > old > CbC_scripts
changeset 23:e22a82d584c6
minor fix
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 31 Oct 2015 17:43:39 +0900 |
parents | c32994789739 |
children | 569b28c699d9 |
files | meta_connector/meta_connector.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/meta_connector/meta_connector.py Sat Oct 31 03:03:09 2015 +0900 +++ b/meta_connector/meta_connector.py Sat Oct 31 17:43:39 2015 +0900 @@ -61,12 +61,14 @@ callee_name = regexed_l.group(0).rstrip('(') if callee_name == 'start_code' or re.match('meta_|meta$',callee_name): file.write(l) - else: + elif re.search(r"\(context", l) is None: file.write("/*-- connected by script */\n") file.write('// '+l) meta_name = 'meta_'+caller_name if cs_search(lines, 'meta_'+callee_name) else 'meta' file.write("goto {0:s}(context{1:s}, {2:s});\n".format(meta_name, get_args_from_line(l),\ callee_name.capitalize())) + else: + file.write(l) else: file.write(l) if defaultMetaIsNotExist: