mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-24 08:35:26 +00:00
HackStudio: Hookup git commit message detection and highlighting
This commit is contained in:
committed by
Andreas Kling
parent
974e36e7a9
commit
89592601b6
@@ -21,6 +21,7 @@
|
||||
#include <LibGUI/Application.h>
|
||||
#include <LibGUI/GMLAutocompleteProvider.h>
|
||||
#include <LibGUI/GMLSyntaxHighlighter.h>
|
||||
#include <LibGUI/GitCommitSyntaxHighlighter.h>
|
||||
#include <LibGUI/INISyntaxHighlighter.h>
|
||||
#include <LibGUI/Label.h>
|
||||
#include <LibGUI/MessageBox.h>
|
||||
@@ -606,6 +607,9 @@ void Editor::set_syntax_highlighter_for(const CodeDocument& document)
|
||||
case Language::CSS:
|
||||
set_syntax_highlighter(make<Web::CSS::SyntaxHighlighter>());
|
||||
break;
|
||||
case Language::GitCommit:
|
||||
set_syntax_highlighter(make<GUI::GitCommitSyntaxHighlighter>());
|
||||
break;
|
||||
case Language::GML:
|
||||
set_syntax_highlighter(make<GUI::GMLSyntaxHighlighter>());
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user