File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -2097,15 +2097,13 @@ def replace_vars(line: str):
2097
2097
# Handle multiline macro continuation
2098
2098
if def_cont_name is not None :
2099
2099
output_file .append ("" )
2100
- if line .rstrip ()[- 1 ] != "\\ " :
2101
- defs_tmp [def_cont_name ] = append_multiline_macro (
2102
- defs_tmp [def_cont_name ], line .strip ()
2103
- )
2100
+ is_multiline = line .strip ()[- 1 ] != "\\ "
2101
+ line_to_append = line .strip () if is_multiline else line [0 :- 1 ].strip ()
2102
+ defs_tmp [def_cont_name ] = append_multiline_macro (
2103
+ defs_tmp [def_cont_name ], line_to_append
2104
+ )
2105
+ if is_multiline :
2104
2106
def_cont_name = None
2105
- else :
2106
- defs_tmp [def_cont_name ] = append_multiline_macro (
2107
- defs_tmp [def_cont_name ], line [0 :- 1 ].strip ()
2108
- )
2109
2107
continue
2110
2108
# Handle conditional statements
2111
2109
match = FRegex .PP_REGEX .match (line )
You can’t perform that action at this time.
0 commit comments