From d4ab6b620f0af2fd4ec9f13c45e4acd4f68109cf Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sat, 15 Jun 2013 07:29:58 +0000 Subject: [PATCH] Protect against fall-through of color selection. --- Highlight.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Highlight.cpp b/Highlight.cpp index 2587d19..8090a3a 100644 --- a/Highlight.cpp +++ b/Highlight.cpp @@ -80,6 +80,9 @@ void CYLexerHighlight(const char *data, size_t size, std::ostream &output, bool case hi::Operator: color = CYColor(false, 36); break; case hi::Structure: color = CYColor(true, 34); break; case hi::Type: color = CYColor(true, 34); break; + + // XXX: maybe I should use nodefault here? + default: color = CYColor(true, 0); break; } Skip(data, size, output, offset, current, location.begin); -- 2.45.2