| Age | Commit message (Collapse) | Author |
|
This is helpful for plugins that need to know when a line has been
retokenized.
|
|
Prepopulate highlighter
|
|
Avoid calling `table.{insert,remove}` multiple times, as this causes
multiple shifts in the `self.lines` table.
|
|
This allows clearing the `lines` table without removing entries.
|
|
When `highlighter:insert_notify` was called, a hole in the array was
created.
If another call to `highlighter:insert_notify` happened before the hole
was filled, a `Position out of bounds` error could have been raised.
|
|
The syntax highlighter keep a cache of the documents like tokenization.
In order to minimize the amount of tokenize re-computations we insert some
emtty lines or remove some lines in the highlither lines corresponding to
the lines added or removed to the document.
|
|
In the highlither thread We should accept a previously generated line tokenization
past first_invalid_line only if the text is the same. The text can change because of
insert or remove operations.
Close #573.
|
|
The value should not be updated if the current first_invalid_line is less than
the new invalid line index
|
|
|
|
|
|
|
|
|
|
|
|
* Only one highlighter state is kept per-document as opposed
to one per-docview
* Fixes a bug with retaining older highlighter state as a
DocView wasn't able to detect lines changing above it's viewport
* Renames `highlighter` module to more descriptive `tokenizer`
|