mirror of
https://git.srhtnin.garden/sarah/SaraView.git
synced 2026-10-15 02:43:17 +02:00
Made portals go through portals.
This commit is contained in:
1 parent
9dba722cd9
commit
82a728dc67
1 file changed
+4
-3
+4
-3
@@ -41,7 +41,7 @@ def _FindLocalDefinitions(Content: str) -> dict[str, str]:
|
|||||||
Captured = (
|
Captured = (
|
||||||
Line[: Match.start() - LineStart] + Line[Match.end() - LineStart :]
|
Line[: Match.start() - LineStart] + Line[Match.end() - LineStart :]
|
||||||
).strip()
|
).strip()
|
||||||
LineDefinitions[Name] = Captured
|
LineDefinitions[Name] = _ResolveLocalPortals(Captured)
|
||||||
elif Match.group("BlockName"):
|
elif Match.group("BlockName"):
|
||||||
Name = Match.group("BlockName")
|
Name = Match.group("BlockName")
|
||||||
BlockOccurrences.setdefault(Name, []).append(Match)
|
BlockOccurrences.setdefault(Name, []).append(Match)
|
||||||
@@ -51,9 +51,10 @@ def _FindLocalDefinitions(Content: str) -> dict[str, str]:
|
|||||||
Open = Occurrences[0]
|
Open = Occurrences[0]
|
||||||
if len(Occurrences) >= 2:
|
if len(Occurrences) >= 2:
|
||||||
Close = Occurrences[1]
|
Close = Occurrences[1]
|
||||||
BlockDefinitions[Name] = Content[Open.end() : Close.start()].strip("\n")
|
Captured = Content[Open.end() : Close.start()].strip("\n")
|
||||||
else:
|
else:
|
||||||
BlockDefinitions[Name] = Content[Open.end() :].lstrip("\n")
|
Captured = Content[Open.end() :].lstrip("\n")
|
||||||
|
BlockDefinitions[Name] = _ResolveLocalPortals(Captured)
|
||||||
|
|
||||||
return {**LineDefinitions, **BlockDefinitions}
|
return {**LineDefinitions, **BlockDefinitions}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user