[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master ade814a2268 1/2: ; * lisp/progmodes/rust-ts-mode.el: Escape aster
From: |
Mattias Engdegård |
Subject: |
master ade814a2268 1/2: ; * lisp/progmodes/rust-ts-mode.el: Escape asterisks in regexp. |
Date: |
Tue, 19 Dec 2023 11:12:33 -0500 (EST) |
branch: master
commit ade814a2268285475675872760e3c358ec24a130
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>
; * lisp/progmodes/rust-ts-mode.el: Escape asterisks in regexp.
---
lisp/progmodes/rust-ts-mode.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/progmodes/rust-ts-mode.el b/lisp/progmodes/rust-ts-mode.el
index ac860969daf..b4609509798 100644
--- a/lisp/progmodes/rust-ts-mode.el
+++ b/lisp/progmodes/rust-ts-mode.el
@@ -298,7 +298,8 @@
(let* ((beg (treesit-node-start node))
(face (save-excursion
(goto-char beg)
- (if (looking-at
"/\\(?:/\\(?:/[^/]\\|!\\)\\|*\\(?:*[^*/]\\|!\\)\\)" t)
+ (if (looking-at-p
+ "/\\(?:/\\(?:/[^/]\\|!\\)\\|\\*\\(?:\\*[^*/]\\|!\\)\\)")
'font-lock-doc-face
'font-lock-comment-face))))
(treesit-fontify-with-override beg (treesit-node-end node)