mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 21:08:12 +00:00
LibGUI+LibCpp: Move C++ syntax highlighter to LibCpp
This makes LibGUI not depend on LibCpp.
This commit is contained in:
parent
b1f1f5afcf
commit
ff2438e0ce
9 changed files with 23 additions and 23 deletions
|
@ -33,12 +33,12 @@
|
|||
#include <Applications/TextEditor/TextEditorWindowGML.h>
|
||||
#include <LibCore/File.h>
|
||||
#include <LibCore/MimeData.h>
|
||||
#include <LibCpp/SyntaxHighlighter.h>
|
||||
#include <LibDesktop/Launcher.h>
|
||||
#include <LibGUI/Action.h>
|
||||
#include <LibGUI/ActionGroup.h>
|
||||
#include <LibGUI/BoxLayout.h>
|
||||
#include <LibGUI/Button.h>
|
||||
#include <LibGUI/CppSyntaxHighlighter.h>
|
||||
#include <LibGUI/FilePicker.h>
|
||||
#include <LibGUI/FontPicker.h>
|
||||
#include <LibGUI/GMLSyntaxHighlighter.h>
|
||||
|
@ -469,7 +469,7 @@ TextEditorWidget::TextEditorWidget()
|
|||
syntax_menu.add_action(*m_plain_text_highlight);
|
||||
|
||||
m_cpp_highlight = GUI::Action::create_checkable("C++", [&](auto&) {
|
||||
m_editor->set_syntax_highlighter(make<GUI::CppSyntaxHighlighter>());
|
||||
m_editor->set_syntax_highlighter(make<Cpp::SyntaxHighlighter>());
|
||||
m_editor->update();
|
||||
});
|
||||
syntax_actions.add_action(*m_cpp_highlight);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue