]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lisp/progmodes/rust-ts-mode.el: Escape asterisks in regexp.
authorMattias Engdegård <mattiase@acm.org>
Tue, 19 Dec 2023 16:07:24 +0000 (17:07 +0100)
committerMattias Engdegård <mattiase@acm.org>
Tue, 19 Dec 2023 16:10:19 +0000 (17:10 +0100)
lisp/progmodes/rust-ts-mode.el

index ac860969daffafd5a4aba585a5e6c196a99278d7..b4609509798d0f950ddbdda1097df0eec7eba0af 100644 (file)
   (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)