mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-03 22:59:33 +00: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: 23ac52bc80
Pull-request: https://github.com/SerenityOS/serenity/pull/18747
Reviewed-by: https://github.com/AtkinsSJ
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_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…
Add table
Add a link
Reference in a new issue