mondo: remember pair locations

+ allow passing a scope to MondoRunner.run
+ make def a side effect
+ proper lambda with multiple args + closure
This commit is contained in:
Felix Roos 2025-04-01 21:49:28 +02:00
parent f2372e7a41
commit 94a3a60e49
No known key found for this signature in database
3 changed files with 38 additions and 31 deletions

View file

@ -93,7 +93,7 @@ export function mondo(code, offset = 0) {
if (Array.isArray(code)) {
code = code.join('');
}
const pat = runner.run(code, offset);
const pat = runner.run(code, undefined, offset);
return pat.markcss('color: var(--caret,--foreground);text-decoration:underline');
}