Skip to content

Commit 7818f50

Browse files
Copilotgerlero
andcommitted
Fix line continuation handling in Python fallback implementation
Co-authored-by: gerlero <[email protected]>
1 parent a86cc46 commit 7818f50

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/foamlib/_files/_parsing/_parser.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,8 @@ def _skip(
128128
if contents[pos] == ord("\\"):
129129
with contextlib.suppress(IndexError):
130130
if contents[pos + 1] == ord("\n"):
131-
pos += 1
132-
pos += 1
133-
continue
131+
pos += 2
132+
continue
134133
pos += 1
135134
continue
136135

0 commit comments

Comments
 (0)