diff options
author | 2014-03-28 14:39:47 -0700 | |
---|---|---|
committer | 2014-03-28 14:39:47 -0700 | |
commit | 005edf71a8ed3493b9fbbc1de81d10ed73cdca79 (patch) | |
tree | b81dcea4f872272657ec81f662d6eb34394d0c3d /highlight.cpp | |
parent | c1f64ba017b3294820ed5381cfd7a6e36501dcc8 (diff) |
Fix initially backgrounded jobs. Fixes #1373
Diffstat (limited to 'highlight.cpp')
-rw-r--r-- | highlight.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/highlight.cpp b/highlight.cpp index c1c24dd8..d03a6087 100644 --- a/highlight.cpp +++ b/highlight.cpp @@ -960,7 +960,7 @@ public: void highlighter_t::color_node(const parse_node_t &node, highlight_spec_t color) { // Can only color nodes with valid source ranges - if (! node.has_source()) + if (! node.has_source() || node.source_length == 0) return; // Fill the color array with our color in the corresponding range @@ -1356,6 +1356,7 @@ const highlighter_t::color_array_t & highlighter_t::highlight() case parse_token_type_background: case parse_token_type_end: + case symbol_optional_background: { this->color_node(node, highlight_spec_statement_terminator); } |