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):
20972097 # Handle multiline macro continuation
20982098 if def_cont_name is not None :
20992099 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 :
21042106 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- )
21092107 continue
21102108 # Handle conditional statements
21112109 match = FRegex .PP_REGEX .match (line )
You can’t perform that action at this time.
0 commit comments