From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.devel Subject: [jerome@marant.org: [sh-script] Erroneous syntax highlighting of "[[ ]]" expressions with zsh] Date: Sun, 11 Dec 2005 17:57:16 -0500 Message-ID: Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1134342332 13096 80.91.229.2 (11 Dec 2005 23:05:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 11 Dec 2005 23:05:32 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 12 00:05:29 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ElaFa-0002f9-Os for ged-emacs-devel@m.gmane.org; Mon, 12 Dec 2005 00:05:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ElaG2-0002t6-6b for ged-emacs-devel@m.gmane.org; Sun, 11 Dec 2005 18:05:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ela9Z-0007D8-Ae for emacs-devel@gnu.org; Sun, 11 Dec 2005 17:58:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ela9X-0007CC-Gv for emacs-devel@gnu.org; Sun, 11 Dec 2005 17:58:48 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ela9X-0007C7-Bo for emacs-devel@gnu.org; Sun, 11 Dec 2005 17:58:47 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ElaB9-0000J8-Sa for emacs-devel@gnu.org; Sun, 11 Dec 2005 18:00:27 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1Ela84-0007pm-NU; Sun, 11 Dec 2005 17:57:16 -0500 Original-To: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:47491 Archived-At: Since the Font Lock facilities are limited, it may be impossible to handle these cases right. But could someone who understands Font Lock please try? ------- Start of forwarded message ------- To: bug-gnu-emacs@gnu.org Date: Sun, 11 Dec 2005 15:38:47 +0100 (CET) From: jerome@marant.org (jerome) Subject: [sh-script] Erroneous syntax highlighting of "[[ ]]" expressions with zsh Sender: bug-gnu-emacs-bounces+rms=gnu.org@gnu.org X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on monty-python X-Spam-Level: X-Spam-Status: No, hits=0.1 required=5.0 tests=RCVD_IN_SORBS autolearn=no version=2.63 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.4.1 (x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2005-10-04 on athlon, modified by Debian configured using `configure '--build=x86_64-linux-gnu' '--host=x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--with-x=yes' '--with-x-toolkit=athena' 'CFLAGS=-DDEBIAN -g -O2' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu'' 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: fr_FR.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: This is Debian bug #335712 (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=335712) Thanks in advance. - ---------------------------- Consider the following file #!/bin/zsh if [[ x == x ]] then echo OK fi if [[ x == x ]]; then echo OK fi opened in Shell-script[zsh] mode. The first "then" is not colored (but the second one is). Moreover, in the condition "x == x", the first x is colored (this is incorrect, IMHO), while the second one isn't (OK). - ---------------------------- It seems that bash makes the ";" mandatory after "]]" while zsh does not. Recent input: s SPC i n SPC a d v a n c e . C h e e r s , SPC D a n i e l ? C-c C-c , i M-u q g SPC SPC q M-x C-h C-g C-g C-g Recent messages: Checking new news...done Retrieving newsgroup: emacs-devel... Fetching headers for emacs-devel...done Suppressing duplicates...done Generating summary...done No more unread newsgroups Auto-saving... call-interactively: Quit keyboard-quit: Quit Loading emacsbug...done _______________________________________________ Bug-gnu-emacs mailing list Bug-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs ------- End of forwarded message -------