mirror of
https://github.com/goldenfishs/MRobot.git
synced 2025-07-04 22:44:16 +08:00
添加新的保留区域
This commit is contained in:
parent
c737ec79d4
commit
ae6246474b
@ -1003,7 +1003,7 @@ class DataInterface(BaseInterface):
|
||||
def repl(m):
|
||||
return m.group(0).replace(m.group(1), old_content)
|
||||
return pattern.sub(repl, new_code, count=1)
|
||||
for region in ["USER INCLUDE", "USER STRUCT", "USER CODE"]:
|
||||
for region in ["USER INCLUDE", "USER STRUCT", "USER CODE", "USER INIT CODE"]:
|
||||
code = preserve_user_region(code, old_code, region)
|
||||
with open(task_c_path, "w", encoding="utf-8") as f:
|
||||
f.write(code)
|
||||
|
BIN
User_code/.DS_Store
vendored
BIN
User_code/.DS_Store
vendored
Binary file not shown.
Loading…
Reference in New Issue
Block a user