Implemented syntax highlighting

This commit is contained in:
2026-02-18 02:00:45 -05:00
parent 87d465034a
commit 43b171fab1
21 changed files with 772 additions and 262 deletions

View File

@@ -315,10 +315,10 @@ impl LogTab {
self.aliases.get(name).cloned()
}
pub fn remove_alias(&mut self, name: &str) {
flog!(DEBUG, self.aliases);
flog!(DEBUG, name);
log::debug!("{:?}", self.aliases);
log::debug!("{name:?}");
self.aliases.remove(name);
flog!(DEBUG, self.aliases);
log::debug!("{:?}", self.aliases);
}
pub fn clear_aliases(&mut self) {
self.aliases.clear()
@@ -655,7 +655,7 @@ impl VarTab {
}
}
pub fn var_exists(&self, var_name: &str) -> bool {
flog!(DEBUG, "checking existence of {}",var_name);
log::debug!("checking existence of {}", var_name);
if let Ok(param) = var_name.parse::<ShellParam>() {
return self.params.contains_key(&param);
}