mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 02:37:42 +00:00
Shell: Move Shell syntax highlighter LibShell
This commit is contained in:
parent
ddbf20ecf6
commit
50308f6fda
6 changed files with 24 additions and 26 deletions
|
@ -47,7 +47,6 @@
|
|||
#include <LibGUI/MenuBar.h>
|
||||
#include <LibGUI/MessageBox.h>
|
||||
#include <LibGUI/RegularEditingEngine.h>
|
||||
#include <LibGUI/ShellSyntaxHighlighter.h>
|
||||
#include <LibGUI/Splitter.h>
|
||||
#include <LibGUI/StatusBar.h>
|
||||
#include <LibGUI/TextBox.h>
|
||||
|
@ -59,6 +58,7 @@
|
|||
#include <LibJS/SyntaxHighlighter.h>
|
||||
#include <LibMarkdown/Document.h>
|
||||
#include <LibWeb/OutOfProcessWebView.h>
|
||||
#include <Shell/SyntaxHighlighter.h>
|
||||
#include <string.h>
|
||||
|
||||
TextEditorWidget::TextEditorWidget()
|
||||
|
@ -497,7 +497,7 @@ TextEditorWidget::TextEditorWidget()
|
|||
syntax_menu.add_action(*m_ini_highlight);
|
||||
|
||||
m_shell_highlight = GUI::Action::create_checkable("Shell File", [&](auto&) {
|
||||
m_editor->set_syntax_highlighter(make<GUI::ShellSyntaxHighlighter>());
|
||||
m_editor->set_syntax_highlighter(make<Shell::SyntaxHighlighter>());
|
||||
m_editor->update();
|
||||
});
|
||||
syntax_actions.add_action(*m_shell_highlight);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue