projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
281be72
)
; * lisp/progmodes/rust-ts-mode.el: Escape asterisks in regexp.
author
Mattias Engdegård
<mattiase@acm.org>
Tue, 19 Dec 2023 16:07:24 +0000
(17:07 +0100)
committer
Mattias Engdegård
<mattiase@acm.org>
Tue, 19 Dec 2023 16:10:19 +0000
(17:10 +0100)
lisp/progmodes/rust-ts-mode.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/rust-ts-mode.el
b/lisp/progmodes/rust-ts-mode.el
index ac860969daffafd5a4aba585a5e6c196a99278d7..b4609509798d0f950ddbdda1097df0eec7eba0af 100644
(file)
--- 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)