MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / skip_comment

Function skip_comment

tools/python-3.11.9-amd64/Lib/tomllib/_parser.py:263–272  ·  view source on GitHub ↗
(src: str, pos: Pos)

Source from the content-addressed store, hash-verified

261
262
263def skip_comment(src: str, pos: Pos) -> Pos:
264 try:
265 char: str | None = src[pos]
266 except IndexError:
267 char = None
268 if char == "#":
269 return skip_until(
270 src, pos + 1, "\n", error_on=ILLEGAL_COMMENT_CHARS, error_on_eof=False
271 )
272 return pos
273
274
275def skip_comments_and_array_ws(src: str, pos: Pos) -> Pos:

Callers 2

loadsFunction · 0.70

Calls 1

skip_untilFunction · 0.70

Tested by

no test coverage detected