From: "Stefan Monnier" <monnier@iro.umontreal.ca>
Subject: Re: comments are not highlighted
Date: Wed, 17 Sep 2003 13:10:59 GMT [thread overview]
Message-ID: <jwvfzivy2zi.fsf@vor.iro.umontreal.ca> (raw)
In-Reply-To: pan.2003.09.16.02.53.46.977248@hotpop.com
> which has arround 150 lines of comments. at line 184 or so.. . Emacs stops
> changing the color (global-font-lock-mode) of comments after certain point
> ( 100 lines or so) after that it shows the comments as normal text and
> highlights the keywords such as "do" "for" etc..
My crystal ball says that you have an open-paren or open-bracket or
open-brace in column 0 somewhere inside your 150-lines-long comment.
Emacs thinks this indicates a "beginning of defun" and thus assumes
it's not inside a comment. This heuristic is used in some cases but not
all the time, so the highlighting will sometimes be correct and sometimes
not depending on where the font-locking has started (since you're
presumably using jit-lock which highlights the buffer on the fly in small
increments).
Stefan
next prev parent reply other threads:[~2003-09-17 13:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-16 2:53 comments are not highlighted Prem Mallappa
2003-09-17 13:10 ` Stefan Monnier [this message]
2003-09-17 16:30 ` Rob Thorpe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvfzivy2zi.fsf@vor.iro.umontreal.ca \
--to=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).