mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:27:45 +00:00
GMLPlayground: Use try_make
for syntax highlighting and autocomplete
This commit is contained in:
parent
477ee34215
commit
23ac52bc80
1 changed files with 2 additions and 2 deletions
|
@ -77,8 +77,8 @@ ErrorOr<NonnullRefPtr<MainWidget>> MainWidget::try_create(GUI::Icon const& icon)
|
||||||
|
|
||||||
main_widget->m_preview = main_widget->m_preview_frame_widget;
|
main_widget->m_preview = main_widget->m_preview_frame_widget;
|
||||||
|
|
||||||
main_widget->m_editor->set_syntax_highlighter(make<GUI::GML::SyntaxHighlighter>());
|
main_widget->m_editor->set_syntax_highlighter(TRY(try_make<GUI::GML::SyntaxHighlighter>()));
|
||||||
main_widget->m_editor->set_autocomplete_provider(make<GUI::GML::AutocompleteProvider>());
|
main_widget->m_editor->set_autocomplete_provider(TRY(try_make<GUI::GML::AutocompleteProvider>()));
|
||||||
main_widget->m_editor->set_should_autocomplete_automatically(true);
|
main_widget->m_editor->set_should_autocomplete_automatically(true);
|
||||||
main_widget->m_editor->set_automatic_indentation_enabled(true);
|
main_widget->m_editor->set_automatic_indentation_enabled(true);
|
||||||
main_widget->m_editor->set_ruler_visible(true);
|
main_widget->m_editor->set_ruler_visible(true);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue