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

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

syntax table not greedy enough


From: Spike Ilacqua
Subject: syntax table not greedy enough
Date: Wed, 27 Oct 2004 14:18:16 -0600 (MDT)

This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.

In GNU Emacs 21.3.1 (i386--freebsd, X toolkit, Xaw3d scroll bars)
 of 2004-02-16 on net.indra.com
configured using `configure  --x-libraries=/usr/X11R6/lib 
--x-includes=/usr/X11R6/include --prefix=/usr/local i386--freebsd'
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: nil
  locale-coding-system: nil
  default-enable-multibyte-characters: t

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

If you have a comment syntax that uses the same charater as the start
of a single and a two-character comment, ie: "| " and "|* [...] *| are
both types of comments, Emacs fails to reconize the second form
because it stops when it sees the first.  This syntax-table:


      (modify-syntax-entry ?\n ">" st)
      (modify-syntax-entry ?\| "< 14" st)
      (modify-syntax-entry ?\* ". 23b" st)

describes the above syntax, but does not work because "|" overides
"|*".  Because comment type "b" is not reconized multi-line comments
do not work and in-line comments are extended past "*|" to the end of
the line.

Thanks,

->Spike




reply via email to

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