]> git.saurik.com Git - cycript.git/blobdiff - Highlight.cpp
Protect against fall-through of color selection.
[cycript.git] / Highlight.cpp
index 2587d19b17fe969e515d0bf9117927a1005fba48..8090a3a0692c3ad18b0d3b4e9b4d12362f7c881a 100644 (file)
@@ -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);