Highlight help tutor (#838)

* WIP

* Syntax highlight help, add tutor
This commit is contained in:
JT
2022-01-24 10:05:19 -05:00
committed by GitHub
parent 525ed7653f
commit 3d0b1ef1ce
20 changed files with 640 additions and 34 deletions

View File

@ -33,7 +33,12 @@ fn eval_call(
let decl = engine_state.get_decl(call.decl_id);
if call.named.iter().any(|(flag, _)| flag.item == "help") {
let full_help = get_full_help(&decl.signature(), &decl.examples(), engine_state);
let full_help = get_full_help(
&decl.signature(),
&decl.examples(),
engine_state,
caller_stack,
);
Ok(Value::String {
val: full_help,
span: call.head,