[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: 14 Feb 2002 20:30:26 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1

address@hidden (Andreas Schwab) writes:

> Felix Natter <address@hidden> writes:
> |> 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 ?
> You can use syntactic fontification for this.

I just downloaded the sgml-mode.el from cvs
and saw that this was fixed in this way:

(defvar sgml-font-lock-syntactic-keywords
  ;; Use the `b' style of comments to avoid interference with the -- ... --
  ;; comments recognized when `sgml-specials' includes ?-.
  ;; FIXME: beware of <!--> blabla <!--> !!
  '(("\\(<\\)!--" (1 "< b"))
    ("--[ \t\n]*\\(>\\)" (1 "> b")))
  "Syntactic keywords for `sgml-mode'.")

2001-10-25  Stefan Monnier  <address@hidden>

* textmodes/sgml-mode.el (sgml-font-lock-keywords-1): Ignore comments.
        (sgml-font-lock-keywords-2): Use `eval'.  Moved from sgml-mode-common.
        (sgml-font-lock-syntactic-keywords): New var.
        (sgml-mode-common): Drop the two args.
        Don't make buffer-local variables that aren't used.
        Don't set sgml-font-lock-keywords-2 now that it uses `eval instead.
        Don't set `before-string' props from sgml-display-text.
        (sgml-mode): Use define-derived-mode.
        (sgml-tags-invisible): Use sgml-display-text.
        (sgml-quote): New command.
        (html-tag-alist): Add args for `span'.
        (html-mode): Use define-derived-mode.
        Set sgml-display-text and sgml-tag-face-alist.

Stefan told me about this but I forgot it :-/

Felix Natter

reply via email to

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