MCPcopy
hub / github.com/SirVer/ultisnips / _parse

Method _parse

pythonx/UltiSnips/snippet/parsing/lexer.py:204–214  ·  view source on GitHub ↗
(self, stream, indent)

Source from the content-addressed store, hash-verified

202 return cls.CHECK.match(stream.peek(10)) is not None
203
204 def _parse(self, stream, indent):
205 next(stream) # $
206 next(stream) # {
207
208 self.number = _parse_number(stream)
209
210 next(stream) # /
211
212 self.search = _parse_till_unescaped_char(stream, "/")[0]
213 self.replace = _parse_till_unescaped_char(stream, "/")[0]
214 self.options = _parse_till_closing_brace(stream)
215
216 def __repr__(self):
217 return (

Callers

nothing calls this directly

Calls 3

_parse_numberFunction · 0.85

Tested by

no test coverage detected