-- Josh Huber <huber(a)mclx.com> spake thusly:
Hey, I've found a problem with font-lock mode in lisp mode.
The first defvar here causes all lines after it to be colored in the
font-lock face for docstrings. The second is fine. The problem may
me more complex than this, but this is the case I've found that
triggers the bug:
(defvar foo ()
"This bug shows itself when there is a docstring with an open paren
`(' on the first line of the doc-string:
(this shows the bug)"
(interactive))
(defvar foo ()
"This bug shows itself when there is a docstring with an open paren
`(' on the first line of the doc-string:
(this shows the bug)"
(interactive))
Hope that helps track the bug down,
This is a known bug, but I'll add it to the list of "things to be fixed
using syntax-table extents".
The current workaround is to escape the '(' in the docstring using a
backslash:
(defvar foo ()
"This bug shows itself when there is a docstring with an open paren
`(' on the first line of the doc-string:
\(this solves the bug)"
(interactive))
Just for my own clarification, though, I don't see any difference
between the two examples you gave. Am I confused, or did you
accidentally include the same one twice?