def get_env( code:str, # Right-truncated to cursor position r2chars:str, # The two characters immediately after `code`, used to accurately determine rcomp sc_delimiter)->Tuple[__main__.Env, int, str, str]:
Returns completions environment
Returns
env : Env
pos : int Where the completions start. This is set to the start of the word to be completed. out_chunk : str Word to match. rcomp : str How to finish the completion (defaulting to nothing): locals: ’ globals (if start with ${): } scalars: ) scalars (if start with `): )’