From 8fbe1efabc82a345cab88b9f3cf788e6b35c948b Mon Sep 17 00:00:00 2001 From: Eknath Date: Tue, 25 Aug 2026 20:58:58 +0530 Subject: [PATCH] Fix OptionHighlighter regex incorrectly highlighting comparison operators as metavars --- typer/rich_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typer/rich_utils.py b/typer/rich_utils.py index d974c5a0a8..e21975b090 100644 --- a/typer/rich_utils.py +++ b/typer/rich_utils.py @@ -112,7 +112,7 @@ class OptionHighlighter(RegexHighlighter): highlights = [ r"(^|\W)(?P\-\w+)(?![a-zA-Z0-9])", r"(^|\W)(?P