]> git.saurik.com Git - cycript.git/blobdiff - Highlight.cpp
Detect all lexer state errors, and show line number.
[cycript.git] / Highlight.cpp
index 750516775fa06f44b039373ef4f0cc996e6a6c25..2587d19b17fe969e515d0bf9117927a1005fba48 100644 (file)
@@ -56,6 +56,7 @@ struct CYColor {
 void CYLexerHighlight(const char *data, size_t size, std::ostream &output, bool ignore) {
     CYStream stream(data, data + size);
     CYDriver driver(stream);
+    driver.commented_ = true;
 
     size_t offset(0);
     cy::position current;