MCPcopy Index your code
hub / github.com/RustPython/RustPython / skip_comment

Function skip_comment

Lib/tomllib/_parser.py:336–345  ·  view source on GitHub ↗
(src: str, pos: Pos)

Source from the content-addressed store, hash-verified

334
335
336def skip_comment(src: str, pos: Pos) -> Pos:
337 try:
338 char: str | None = src[pos]
339 except IndexError:
340 char = None
341 if char == "#":
342 return skip_until(
343 src, pos + 1, "\n", error_on=ILLEGAL_COMMENT_CHARS, error_on_eof=False
344 )
345 return pos
346
347
348def skip_comments_and_array_ws(src: str, pos: Pos) -> Pos:

Callers 2

loadsFunction · 0.85

Calls 1

skip_untilFunction · 0.85

Tested by

no test coverage detected