From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicholas Sushkin Newsgroups: gmane.emacs.bugs Subject: shell mode syntax higlighting problem with here documents Date: Wed, 19 Oct 2005 13:04:33 -0400 Message-ID: <200510191704.j9JH4X3T027151@nydagt01.openfinance.com> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1129742957 30864 80.91.229.2 (19 Oct 2005 17:29:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Oct 2005 17:29:17 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 19 19:29:08 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ESHjR-0001rk-Jn for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Oct 2005 19:28:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ESHjR-0005Th-28 for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Oct 2005 13:28:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ESHMy-0007vG-CT for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2005 13:04:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ESHMx-0007uH-If for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2005 13:04:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ESHMw-0007u9-Sh for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2005 13:04:51 -0400 Original-Received: from [128.241.244.171] (helo=mail.openfinance.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ESHMw-0002eT-P4 for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2005 13:04:50 -0400 Original-Received: by mail.openfinance.com (Postfix, from userid 889) id 9E8417FCA4; Wed, 19 Oct 2005 12:36:59 -0400 (EDT) Original-Received: by hidden.hop; Original-Received: by hidden.hop; Original-Received: by hidden.hop; Original-Received: by hidden.hop; Original-To: bug-gnu-emacs@gnu.org X-VirusRpt: No viruses found in message X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:13557 Archived-At: 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-redhat-linux-gnu, X toolkit, Xaw3d scroll bars) of 2005-02-04 on bugs.build.redhat.com configured using `configure --build=i386-redhat-linux --host=i386-redhat-linux --target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --with-pop --with-sound' 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: en_US.UTF-8 locale-coding-system: utf-8 default-enable-multibyte-characters: t Please describe exactly what actions triggered the bug and the precise symptoms of the bug: In the following shell script, the shell script mode syntax highlighting is broken. #!/bin/bash cat << EOF | \ tee -a bug.txt This is a test case for a bug in bash shell mode text highlighting EOF echo "Highlighting is screwed up now" if [ 1 = 1 ] then echo "screwed up" fi Recent input: s c r e w e d SPC u p " f i C-x 4 b C-g C-x s # @ ! / b i n / b a s h C-x s Recent messages: Indentation setup for shell type bash Mark set [3 times] Auto-saving...done Wrote /tmp/bug.sh Quit Wrote /tmp/bug.sh line-move: Beginning of buffer [2 times] Mark set Wrote /tmp/bug.sh Loading emacsbug...done