From: Mattias EngdegÄrd Date: Sat, 24 Dec 2022 16:01:36 +0000 (+0100) Subject: ; * lisp/progmodes/c-ts-mode.el: quote literal string in regexp X-Git-Tag: emacs-29.0.90~1018 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7723af5e4aa8304e244c285d489ca733b8a6cac3;p=emacs.git ; * lisp/progmodes/c-ts-mode.el: quote literal string in regexp --- diff --git a/lisp/progmodes/c-ts-mode.el b/lisp/progmodes/c-ts-mode.el index 471d9a3dec0..d3291722331 100644 --- a/lisp/progmodes/c-ts-mode.el +++ b/lisp/progmodes/c-ts-mode.el @@ -636,7 +636,7 @@ ARG is passed to `fill-paragraph'." ;; filling region. (when (not end-marker) (goto-char end) - (when (looking-back "*/" 2) + (when (looking-back (rx "*/") 2) (backward-char 2) (skip-syntax-backward "-") (setq end (point))))