/* Cycript - Optimizing JavaScript Compiler/Runtime
- * Copyright (C) 2009-2014 Jay Freeman (saurik)
+ * Copyright (C) 2009-2015 Jay Freeman (saurik)
*/
/* GNU Affero General Public License, Version 3 {{{ */
}
};
-void CYLexerHighlight(const char *data, size_t size, std::ostream &output, bool ignore) {
+_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;