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

Function handle_context

pythonx/UltiSnips/snippet/source/file/common.py:27–30  ·  view source on GitHub ↗
(tail, line_index)

Source from the content-addressed store, hash-verified

25
26
27def handle_context(tail, line_index):
28 if tail:
29 return "context", tail.strip('"').replace(r"\"", '"').replace(r"\\\\", r"\\")
30 return "error", ("'context' without body", line_index)

Callers 1

_parse_snippets_fileFunction · 0.90

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected