Make syntax highlighting smoother
This commit is contained in:
@@ -33,9 +33,8 @@ struct Editor {
|
||||
Queue<TSInputEdit> edit_queue;
|
||||
std::vector<Fold> folds;
|
||||
Spans spans;
|
||||
// TODO: Split into 2 groups to have their own mutex's . one for word hl and
|
||||
// one for hex colors
|
||||
Spans def_spans;
|
||||
Spans word_spans;
|
||||
Spans hex_color_spans;
|
||||
uint32_t hooks[94];
|
||||
bool jumper_set;
|
||||
std::shared_mutex v_mtx;
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
struct Spans {
|
||||
std::vector<Span> spans;
|
||||
Queue<std::pair<uint32_t, int64_t>> edits;
|
||||
bool mid_parse = false;
|
||||
std::atomic<bool> mid_parse = false;
|
||||
std::shared_mutex mtx;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user