mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
HackStudio: Enable CMake syntax highlighting
This commit is contained in:
parent
ac824677b8
commit
0d0ad22572
Notes:
sideshowbarker
2024-07-17 09:49:33 +09:00
Author: https://github.com/AtkinsSJ
Commit: 0d0ad22572
Pull-request: https://github.com/SerenityOS/serenity/pull/17668
Reviewed-by: https://github.com/ADKaster ✅
4 changed files with 10 additions and 2 deletions
|
@ -14,6 +14,7 @@
|
|||
#include <AK/Debug.h>
|
||||
#include <AK/JsonParser.h>
|
||||
#include <AK/LexicalPath.h>
|
||||
#include <LibCMake/SyntaxHighlighter.h>
|
||||
#include <LibConfig/Client.h>
|
||||
#include <LibCore/DeprecatedFile.h>
|
||||
#include <LibCore/DirIterator.h>
|
||||
|
@ -636,6 +637,9 @@ void Editor::set_syntax_highlighter_for(CodeDocument const& document)
|
|||
} else
|
||||
set_syntax_highlighter(make<Cpp::SyntaxHighlighter>());
|
||||
|
||||
break;
|
||||
case Language::CMake:
|
||||
set_syntax_highlighter(make<CMake::SyntaxHighlighter>());
|
||||
break;
|
||||
case Language::CSS:
|
||||
set_syntax_highlighter(make<Web::CSS::SyntaxHighlighter>());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue