|
@@ -112,7 +112,7 @@ def convert_literal(literal_raw):
|
|
|
|
|
|
if(match := re.match(r'^\$ARGS\[(\d+)\]$',literal,re.I)):
|
|
|
#ARGS
|
|
|
- return f'$location_var[_here][{match.group(1)}]'
|
|
|
+ return f'$location_var[$here][{match.group(1)}]'
|
|
|
|
|
|
if(match := re.match(r"^(\$?)[a-zA-z]+\w*(\[('\w*'|\d+)\])?$",literal)):
|
|
|
if match.group(1):
|
|
@@ -205,7 +205,7 @@ def convert_file(filename,skipIfNotExplicit=0,defaultsubfolder=False):
|
|
|
with open(tw_filepath, 'w') as file:
|
|
|
#file.write(f'<!-- GENERATED: {datetime.datetime.now()} -->\n')
|
|
|
file.write(f'::{location_identifier}\n')
|
|
|
- file.write(f"<<set _here = '{location_identifier}'>>\n")
|
|
|
+ file.write(f"<<set $here = '{location_identifier}'>>\n")
|
|
|
|
|
|
|
|
|
|