Skip to content

Commit

Permalink
fix some terminal output coloring
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikalii committed Nov 27, 2024
1 parent 71b9f60 commit 8aede24
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1216,7 +1216,11 @@ const DYADIC_MOD: Color = Color::Magenta;

fn color_prim(prim: Primitive, sub: Option<i32>) -> Option<Color> {
match prim.class() {
PrimClass::Stack | PrimClass::Debug if prim.modifier_args().is_none() => None,
PrimClass::Stack | PrimClass::Debug | PrimClass::Planet
if prim.modifier_args().is_none() =>
{
None
}
PrimClass::Constant => None,
_ => {
if let Some(margs) = prim.modifier_args() {
Expand Down

0 comments on commit 8aede24

Please sign in to comment.