help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Global font lock mode in SGML files


From: David Hansen
Subject: Re: Global font lock mode in SGML files
Date: Tue, 08 Mar 2005 22:03:30 +0100
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux)

On 8 Mar 2005 18:16:05 GMT Jens Kubieziel wrote:

> I'm currently switching from vim to GNU Emacs (22.0.50.1) and want to
> edit an SGML file
> (http://user.cs.tu-berlin.de/~pdmef/mutt-ng/manual.sgml). Global font
> lock mode is active, but when I reach line 48 (SGML tools will start
> every paragraph with <tt/"/.) syntax highlighting breaks. The '"' seems
> to be the reason. However IMHO it's a valid SGML source. So what can I
> do that emacs does the syntax highlighting right in that case?

Does this help?

(add-to-list 'sgml-font-lock-syntactic-keywords 
             '("<[a-z]+/\\(:?[^/]*\\(\"\\)[^/]*\\)/" (1 ".")))

It's probably a lame workaround (I don't know SGML syntax).  If
you are sure that your example is valid SGML the best way to get
the problem fixed is M-x report-emacs-bug RET.

David


reply via email to

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