Subject: Re: Failing to recognize -- as comment-starter

From: Eli Zaretskii <[email-masked]>
Date: Sat, 02 Sep 2017 15:53:12 +0300

> From: Stefan Monnier <[email-masked]>
> Date: Fri, 13 May 2016 16:28:06 -0400
> 
> Put the following in bug-mode.el:
> 
>     (defvar bug-mode-syntax-table
>       (let ((st (make-syntax-table)))
>         (modify-syntax-entry ?- "_ 123" st)
>         (modify-syntax-entry ?\n ">" st)
>         st))
>     
>     (define-derived-mode bug-mode prog-mode "BUG"
>       "Major mode to exhibit the bug."
>       (setq-local font-lock-defaults '(nil))
>       (insert "-- hello\n"))
> 
> And then
> 
>     emacs -Q -l bug-mode.el -f bug-mode
> 
> In Emacs-24.5 (and emacs-25) you then see "-- hello" highlighted as
> a comment, but on "master" this stays in default face.

It is highlighted as a comment with the current master, so I guess the
bug was solved in the meantime.

Thanks.