commit 3904958712cb67c079a2e1ea8166fe52d31872a0
parent 13eb26bc302409871350027813e37ad16b8a66cd
Author: Sylvia Ivory <git@sivory.net>
Date: Fri, 20 Jun 2025 19:39:34 -0700
Highlight tables correctly
Diffstat:
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/highlight.rs b/src/highlight.rs
@@ -30,6 +30,9 @@ const LUA_HIGHLIGHT_NAMES: &[&str] = &[
"boolean",
"number",
+ "field",
+ "constructor",
+
"label",
"repeat",
"conditional",
@@ -49,7 +52,7 @@ const fn style_fg(color: Color) -> Style {
is_reverse: false,
is_hidden: false,
is_strikethrough: false,
- prefix_with_reset: false,
+ prefix_with_reset: true,
}
}
@@ -80,6 +83,9 @@ const STYLES: &[Style] = &[
style_fg(Color::Yellow),
style_fg(Color::LightGray),
+ style_fg(Color::LightRed),
+
+ style_fg(Color::LightGray),
style_fg(Color::Purple),
style_fg(Color::Purple),
style_fg(Color::LightBlue),