X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/d9c911529b1480684bb8b6280410f2d09c8525a1..a5662a5364816f852acb056d5c2b2fc94e0c0a5c:/Highlight.cpp diff --git a/Highlight.cpp b/Highlight.cpp index 73814ec..3e8aa7b 100644 --- a/Highlight.cpp +++ b/Highlight.cpp @@ -56,15 +56,15 @@ struct CYColor { }; _visible void CYLexerHighlight(const char *data, size_t size, std::ostream &output, bool ignore) { + CYLocalPool pool; + CYStream stream(data, data + size); - CYDriver driver(stream); + CYDriver driver(pool, stream); driver.commented_ = true; size_t offset(0); CYPosition current; - CYLocalPool pool; - YYSTYPE value; CYLocation location;