Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
27
def
handle_context(tail, line_index):
28
if
tail:
29
return
"context"
, tail.strip(
'"'
).replace(r
"\"
", '"
&
#x27;).replace(r"\\\\", r"\\")
30
return
"error"
, (
"'context' without body"
, line_index)
Callers
1
_parse_snippets_file
Function · 0.90
Calls
1
replace
Method · 0.80
Tested by
no test coverage detected