mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:07:35 +00:00
LibGUI+LibSyntax: Stringify Highlighter::Language
This patch adds a Highlighter::Language -> string helper and a callback for Highlighter changes.
This commit is contained in:
parent
3aa95dd4d5
commit
94b74937d8
4 changed files with 30 additions and 0 deletions
|
@ -1934,6 +1934,8 @@ void TextEditor::set_syntax_highlighter(OwnPtr<Syntax::Highlighter> highlighter)
|
|||
m_needs_rehighlight = true;
|
||||
} else
|
||||
document().set_spans({});
|
||||
if (on_highlighter_change)
|
||||
on_highlighter_change();
|
||||
}
|
||||
|
||||
AutocompleteProvider const* TextEditor::autocomplete_provider() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue