diff --git a/CHANGELOG.md b/CHANGELOG.md index 1b1e334..abadd7a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Unreleased + +### Changed + +- Improved output formatting of non-primitive types +- Improved output formatting of empty tables + ## `0.0.4` - January 21st, 2023 ### Added diff --git a/src/lib/utils/formatting.rs b/src/lib/utils/formatting.rs index ad01fe1..3afb521 100644 --- a/src/lib/utils/formatting.rs +++ b/src/lib/utils/formatting.rs @@ -154,6 +154,14 @@ pub fn pretty_format_value(buffer: &mut String, value: &Value, depth: usize) -> } } } + Value::Vector(x, y, z) => { + write!(buffer, "{COLOR_PURPLE}{COLOR_RESET}",)? + } + Value::Thread(_) => write!(buffer, "{COLOR_PURPLE}{COLOR_RESET}")?, + Value::Function(_) => write!(buffer, "{COLOR_PURPLE}{COLOR_RESET}")?, + Value::UserData(_) | Value::LightUserData(_) => { + write!(buffer, "{COLOR_PURPLE}{COLOR_RESET}")? + } _ => write!(buffer, "?")?, } Ok(())