mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
HackStudio: Hookup git commit message detection and highlighting
This commit is contained in:
committed by
Andreas Kling
parent
974e36e7a9
commit
89592601b6
Notes:
sideshowbarker
2024-07-17 20:41:12 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/89592601b66 Pull-request: https://github.com/SerenityOS/serenity/pull/11985
@@ -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