Eu encontrei um jeito:
diff --git a/src/ls.c b/src/ls.c
index 680a7c3..d316eb6 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -4226,7 +4226,7 @@ print_color_indicator (const struct fileinfo *f, bool symlink_target)
/* Check the file's suffix only if still classified as C_FILE. */
ext = NULL;
- if (type == C_FILE)
+ if (type == C_FILE || type == C_DIR)
{
/* Test if NAME has a recognized suffix. */