]> git.saurik.com Git - cycript.git/blobdiff - Highlight.cpp
Remove all non-%union fields from semantic values.
[cycript.git] / Highlight.cpp
index 73814ec597759c14ad8e0fa7abbd6411a40c128b..3e8aa7bff1ed90b4091c487d3956193be9bbef79 100644 (file)
@@ -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;