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

Function handle_action

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

Source from the content-addressed store, hash-verified

18
19
20def handle_action(head, tail, line_index):
21 if tail:
22 action = tail.strip('"').replace(r"\"", '"').replace(r"\\\\", r"\\")
23 return head, (action,)
24 return "error", (f"'{head}' without specified action", line_index)
25
26
27def handle_context(tail, line_index):

Callers 1

_parse_snippets_fileFunction · 0.90

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected