From: Glenn Morris <rgm@gnu.org>
To: 2436@debbugs.gnu.org
Cc: Tom Tromey <tromey@redhat.com>
Subject: bug#2436: cc mode font-locking -vs- multi-line strings
Date: Mon, 03 Oct 2011 15:46:37 -0400 [thread overview]
Message-ID: <7vaa9hc0yq.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <yoijvdqmqwgg.fsf@remote2.student.chalmers.se> ("Johan \"Bockgård"'s message of "Fri, 06 Mar 2009 20:31:59 +0100")
As was pointed out, there is an unescaped left paren in column 0 (at
line 2560). If this is escaped, the problem goes away.
However, there does at least seem to be a documentation bug, because
cc-mode.texi's FAQ says:
@emph{I have an open paren character at column zero inside a comment or
multiline string literal, and it causes the fontification and/or
indentation to go haywire. What gives?}
[...]
This heuristic is built into the core syntax analysis routines in
(X)Emacs, so it's not really a @ccmode{} issue. However, in Emacs
21.1 it became possible to turn it off@footnote{Using the variable
@code{open-paren-in-column-0-is-defun-start}.} and @ccmode{} does so
there since it's got its own system to keep track of blocks.
However, open-paren-in-column-0-is-defun-start is true in c-mode.
It seems the relevant setting in cc-mode.el was commented out 2006/12/17.
next prev parent reply other threads:[~2011-10-03 19:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-22 18:28 bug#2436: cc mode font-locking -vs- multi-line strings Tom Tromey
2009-03-06 19:31 ` Johan =?UTF-8?Q?Bockg=C3=A5rd
2011-10-03 19:46 ` Glenn Morris [this message]
2014-01-20 3:20 ` Glenn Morris
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vaa9hc0yq.fsf@fencepost.gnu.org \
--to=rgm@gnu.org \
--cc=2436@debbugs.gnu.org \
--cc=tromey@redhat.com \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.