mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:27:35 +00:00
HackStudio: Enable CMake syntax highlighting
This commit is contained in:
parent
ac824677b8
commit
0d0ad22572
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