From 0e2966f10d2c8295de12e215f683d5558451fc36 Mon Sep 17 00:00:00 2001 From: Nik Date: Fri, 9 Feb 2024 13:23:51 +0100 Subject: [PATCH] includes/std: Added missing `std::core::set_pattern_comment` function --- includes/std/core.pat | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/includes/std/core.pat b/includes/std/core.pat index 052ba05..fbf42fb 100644 --- a/includes/std/core.pat +++ b/includes/std/core.pat @@ -146,4 +146,14 @@ namespace std::core { fn set_display_name(ref auto pattern, str name) { builtin::std::core::set_display_name(pattern, name); }; + + + /** + Changes the comment attached to a pattern + @param pattern The pattern to modify + @param name The new comment of the pattern + */ + fn set_pattern_comment(ref auto pattern, str comment) { + builtin::std::core::set_pattern_comment(pattern, name); + }; }