MCPcopy Index your code
hub / github.com/clips/pattern / _parse_comment

Method _parse_comment

pattern/web/pdf/psparser.py:304–314  ·  view source on GitHub ↗
(self, s, i)

Source from the content-addressed store, hash-verified

302 return
303
304 def _parse_comment(self, s, i):
305 m = EOL.search(s, i)
306 if not m:
307 self._curtoken += s[i:]
308 return (self._parse_comment, len(s))
309 j = m.start(0)
310 self._curtoken += s[i:j]
311 self._parse1 = self._parse_main
312 # We ignore comments.
313 #self._tokens.append(self._curtoken)
314 return j
315
316 def _parse_literal(self, s, i):
317 m = END_LITERAL.search(s, i)

Callers

nothing calls this directly

Calls 3

lenFunction · 0.85
searchMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected