We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e0d61b3 + adcbdd7 commit 42ce511Copy full SHA for 42ce511
1 file changed
src/foamlib/_files/_parsing/_parser.py
@@ -102,16 +102,10 @@ def _skip(
102
pos += 1
103
break
104
if contents[pos] == ord("\\"):
105
- newline_next = False
106
with contextlib.suppress(IndexError):
107
- newline_next = contents[pos + 1] == ord("\n")
108
- if not newline_next:
109
- raise FoamFileDecodeError(
110
- contents,
111
- pos,
112
- expected="end of line after backslash",
113
- )
114
- pos += 2
+ if contents[pos + 1] == ord("\n"):
+ pos += 1
115
continue
116
117
0 commit comments