improve and move theming traits

move pretty_print.rs from mers to mers_lib
This commit is contained in:
Mark
2024-06-26 12:54:04 +02:00
parent b3d6b227b5
commit 7a945e80ba
13 changed files with 488 additions and 260 deletions

View File

@@ -105,7 +105,12 @@ impl MersStatement for Chain {
}),
}
} else {
todo!("err: not a function");
Err(CheckError::new()
.msg_str("tried to chain with non-function".to_owned())
.src(vec![(
self.chained.source_range(),
Some(EColor::ChainWithNonFunction),
)]))
}
}
fn has_scope(&self) -> bool {