summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/progmodes/c-ts-mode.el2
1 files changed, 1 insertions, 1 deletions
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))))