Subject: bug#50766: Regexp paren pairs in query-replace-regexp prompt should be highlighted

From: ndame <[email-masked]>
Date: Fri, 24 Sep 2021 08:27:22 +0000

Looks like setting the syntax in the minibuffer fixes this:

(modify-syntax-entry ?\\ "\\" (syntax-table))

So the syntax of \  in the minibuffer should be changed temporarily to
escape-syntax during  read-regexp.