Subject: Re: bug#55744: infinite loop

From: "Daniel R. Grayson" <[email-masked]>
Date: Wed, 1 Jun 2022 07:27:22 -0700

Okay, I did that, and it seems to be this:

(defconst M2-mode-font-lock-keywords ' (
"///\\(/?/?[^/]\\|\\(//\\)*////[^/]\\)*\\(//\\)*///" .
'font-lock-string-face) )
(define-derived-mode M2-mode prog-mode "Macaulay2" (setq font-lock-defaults
'( M2-mode-font-lock-keywords )) )
(add-to-list 'auto-mode-alist '("\\.m2\\'" . M2-mode))