MCPcopy Index your code
hub / github.com/python/cpython / skip_comments_and_array_ws

Function skip_comments_and_array_ws

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

Source from the content-addressed store, hash-verified

347
348
349def skip_comments_and_array_ws(src: str, pos: Pos) -> Pos:
350 while True:
351 pos_before_skip = pos
352 pos = skip_chars(src, pos, TOML_WS_AND_NEWLINE)
353 pos = skip_comment(src, pos)
354 if pos == pos_before_skip:
355 return pos
356
357
358def create_dict_rule(src: str, pos: Pos, out: Output) -> tuple[Pos, Key]:

Callers 2

parse_arrayFunction · 0.85
parse_inline_tableFunction · 0.85

Calls 2

skip_charsFunction · 0.85
skip_commentFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…