help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to make font lock work with comments?


From: Stefan Monnier
Subject: Re: How to make font lock work with comments?
Date: Sun, 02 Jan 2011 23:29:34 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> Im hacking on an apl mode
>  (let ((st (make-syntax-table))
>         (comment-char ?\x235d))
> :
> :
>  (modify-syntax-entry comment-char "<" st)

> In other words emacs sees this as a comment-type char (similar to what
> it says for semicolon in elisp buffers

> And yet in an elisp buffer the ; to EOL is red
> but here it is not.

> Any clues?

How do you setup font-lock-defaults?  I.e. is the KEYWORDS-ONLY entry
set to t by any chance?


        Stefan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]