From 38be359252843bc3eaa5c21fec5117b11f0cb98b Mon Sep 17 00:00:00 2001 From: "Billy.Zheng" Date: Fri, 7 Jun 2024 16:55:13 +0800 Subject: [PATCH] Fix LLDB `crystal_formatters.py` for Python 3 (#14665) --- etc/lldb/crystal_formatters.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/lldb/crystal_formatters.py b/etc/lldb/crystal_formatters.py index fcbc7875c543..2a66369a02a4 100644 --- a/etc/lldb/crystal_formatters.py +++ b/etc/lldb/crystal_formatters.py @@ -57,6 +57,6 @@ def CrystalString_SummaryProvider(value, dict): def __lldb_init_module(debugger, dict): - debugger.HandleCommand('type synthetic add -l crystal_formatters.CrystalArraySyntheticProvider -x "^Array\(.+\)(\s*\**)?" -w Crystal') - debugger.HandleCommand('type summary add -F crystal_formatters.CrystalString_SummaryProvider -x "^(String|\(String \| Nil\))(\s*\**)?$" -w Crystal') - debugger.HandleCommand('type category enable Crystal') + debugger.HandleCommand(r'type synthetic add -l crystal_formatters.CrystalArraySyntheticProvider -x "^Array\(.+\)(\s*\**)?" -w Crystal') + debugger.HandleCommand(r'type summary add -F crystal_formatters.CrystalString_SummaryProvider -x "^(String|\(String \| Nil\))(\s*\**)?$" -w Crystal') + debugger.HandleCommand(r'type category enable Crystal')