[Top][All Lists]

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

Re: sgml-mode.el: html-close-tag

From: Felix Natter
Subject: Re: sgml-mode.el: html-close-tag
Date: 13 Feb 2002 21:11:18 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1

Richard Stallman <address@hidden> writes:

>     > - do we need to support comments that end in i.e. "-- >" ?
>     >   (allowed in HTML 4, section 3.2.4 of the specification)
>     >   currently html-close-tag exits with an error.

this is the wrong quote (It's a problem in the `html-close-tag' function
_I wrote_). The problem is that this kind of comment-end token is only
supported by HTML, and not by XML (I don't know about SGML), so I didn't
support this `html-close-tag' (let's discuss this in another mail)
> How about fixing this one?  Felix, would you like to fix it?

These are the open bug-reports I have about sgml-mode.el:

1. I think there *might* be a bug in line 221 of sgml-mode.el:
    ("<! *--.*-- *>" . font-lock-comment-face)))
In the HTML 4 specification (section 3.2.4), it says that there may
be whitespace between "--" and ">", but not between "<!" and "--".
Since html is sgml, I conclude that the same is true for sgml
(sorry, I can't find the SGML spec)

2. sgml-mode.el currently can't highlight multiline-comments.  This
can probably be fixed by defining a font-lock function. Would that be
too slow ?

3. I wrote a html-close-tag function for html-mode, which
works similar to the `sgml-insert-end-tag' in psgml:
I will reply to you about this in another mail (with the same subject).

Felix Natter

reply via email to

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