mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-29 06:02:07 +03:00
GMLPlayground: Use try_make
for syntax highlighting and autocomplete
This commit is contained in:
parent
477ee34215
commit
23ac52bc80
Notes:
sideshowbarker
2024-07-17 17:49:11 +09:00
Author: https://github.com/krkk Commit: https://github.com/SerenityOS/serenity/commit/23ac52bc80 Pull-request: https://github.com/SerenityOS/serenity/pull/18747 Reviewed-by: https://github.com/AtkinsSJ
@ -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_editor->set_syntax_highlighter(make<GUI::GML::SyntaxHighlighter>());
|
||||
main_widget->m_editor->set_autocomplete_provider(make<GUI::GML::AutocompleteProvider>());
|
||||
main_widget->m_editor->set_syntax_highlighter(TRY(try_make<GUI::GML::SyntaxHighlighter>()));
|
||||
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_automatic_indentation_enabled(true);
|
||||
main_widget->m_editor->set_ruler_visible(true);
|
||||
|
Loading…
Reference in New Issue
Block a user