aboutsummaryrefslogtreecommitdiffhomepage
path: root/highlight.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-04-05 16:09:02 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-04-05 16:09:02 -0700
commit7ef9e4d8e7c37123dbcd6c2fc996e59f617c700a (patch)
treea2671db54f47836155724c1a8a0c343d3a4a7ab2 /highlight.cpp
parent3180910fd1f354ea6afd29f27dbe9c3208ed6e84 (diff)
Remove an unnecessary parse pass in highlight.cpp (oops)
Diffstat (limited to 'highlight.cpp')
-rw-r--r--highlight.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/highlight.cpp b/highlight.cpp
index 14672bf0..8145e5f3 100644
--- a/highlight.cpp
+++ b/highlight.cpp
@@ -950,7 +950,6 @@ public:
highlighter_t(const wcstring &str, size_t pos, const env_vars_snapshot_t &ev, const wcstring &wd, bool can_do_io) : buff(str), cursor_pos(pos), vars(ev), io_ok(can_do_io), working_directory(wd), color_array(str.size())
{
/* Parse the tree */
- this->parse_tree.clear();
parse_tree_from_string(buff, parse_flag_continue_after_error | parse_flag_include_comments, &this->parse_tree, NULL);
}
@@ -1309,10 +1308,6 @@ const highlighter_t::color_array_t & highlighter_t::highlight()
/* Start out at zero */
std::fill(this->color_array.begin(), this->color_array.end(), 0);
- /* Parse the buffer */
- parse_node_tree_t parse_tree;
- parse_tree_from_string(buff, parse_flag_continue_after_error | parse_flag_include_comments, &parse_tree, NULL);
-
#if 0
const wcstring dump = parse_dump_tree(parse_tree, buff);
fprintf(stderr, "%ls\n", dump.c_str());