* Re: [gparis@CoLi.Uni-SB.DE: quotes in sgml mode]
[not found] <E17mb3k-0007I0-00@fencepost.gnu.org>
@ 2002-09-04 16:20 ` Stefan Monnier
0 siblings, 0 replies; only message in thread
From: Stefan Monnier @ 2002-09-04 16:20 UTC (permalink / raw)
Cc: Richard Stallman, bug-gnu-emacs
> I pasted some XML code including the following in my
> *scratch* buffer:
>
>
> <PUNC key="double-quote">
>
> "
>
> </PUNC>
>
> <BAR cat="N" tree="hidden">
>
> <HEAD cat="N" tool="no" gender="masc" number="sin"
> lexeme="machin" ortho="machin" colorGrammLex="Nom">
>
> machin
>
> </HEAD>
>
> <PUNC key="double-quote">
>
> "
>
> </PUNC>
>
> Then I switched to sgml mode with Esc-x sgml-m tab enter.
> The pasted stuff describes a text which contains quotes; the two quotes on
> separate lines are not quotes within sgml tags, but come from the text which
> is being described. So whatever is between them should NOT appear in brown
> like the "double-quote" on the first line. However everything from the 3rd
> to the 9th line is brown (well inverted: that which should be brown is black,
> and that which should be another colour is brown).
Yes, it's a known bug. Emacs' syntax-tables are not flexible enough
to describe the syntax of sgml and xml. While it is not impossible
to fix, it's a lot of work and risks slowing down operations significantly,
Many major modes have similar limitations, sadly.
The latest sgml-mode (in the development code of Emacs) has been improved
in some respect, but not this one.
So I suggest you either use " or you use a hack like
" <!--"-->
to fool Emacs.
Stefan
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-09-04 16:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <E17mb3k-0007I0-00@fencepost.gnu.org>
2002-09-04 16:20 ` [gparis@CoLi.Uni-SB.DE: quotes in sgml mode] Stefan Monnier
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).