From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Sam Kuper Newsgroups: gmane.emacs.bugs Subject: bug#29967: 24.5; Bash syntax highlighting: wrong closing double quote mark Date: Wed, 3 Jan 2018 20:47:39 +0000 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="001a114d07868cdd6f0561e55374" X-Trace: blaine.gmane.org 1515012384 5924 195.159.176.226 (3 Jan 2018 20:46:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 3 Jan 2018 20:46:24 +0000 (UTC) To: 29967@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 03 21:46:19 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eWpvL-0000RV-1T for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Jan 2018 21:46:07 +0100 Original-Received: from localhost ([::1]:36512 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eWpxK-0006AH-DE for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Jan 2018 15:48:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57941) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eWpxD-00069Y-Vc for bug-gnu-emacs@gnu.org; Wed, 03 Jan 2018 15:48:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eWpxC-0004ya-Ml for bug-gnu-emacs@gnu.org; Wed, 03 Jan 2018 15:48:04 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54257) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eWpxC-0004yJ-HH for bug-gnu-emacs@gnu.org; Wed, 03 Jan 2018 15:48:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eWpxC-00033o-7L for bug-gnu-emacs@gnu.org; Wed, 03 Jan 2018 15:48:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Sam Kuper Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 03 Jan 2018 20:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 29967 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.151501247411743 (code B ref -1); Wed, 03 Jan 2018 20:48:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Jan 2018 20:47:54 +0000 Original-Received: from localhost ([127.0.0.1]:34705 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eWpx4-00033K-53 for submit@debbugs.gnu.org; Wed, 03 Jan 2018 15:47:54 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:38508) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eWpx2-000333-V0 for submit@debbugs.gnu.org; Wed, 03 Jan 2018 15:47:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eWpww-0004nb-CY for submit@debbugs.gnu.org; Wed, 03 Jan 2018 15:47:47 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:55664) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eWpww-0004nS-89 for submit@debbugs.gnu.org; Wed, 03 Jan 2018 15:47:46 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57685) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eWpwu-00062Z-L1 for bug-gnu-emacs@gnu.org; Wed, 03 Jan 2018 15:47:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eWpwt-0004lZ-6h for bug-gnu-emacs@gnu.org; Wed, 03 Jan 2018 15:47:44 -0500 Original-Received: from mail-pf0-x235.google.com ([2607:f8b0:400e:c00::235]:36671) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eWpws-0004kd-ST for bug-gnu-emacs@gnu.org; Wed, 03 Jan 2018 15:47:43 -0500 Original-Received: by mail-pf0-x235.google.com with SMTP id p84so1223129pfd.3 for ; Wed, 03 Jan 2018 12:47:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:sender:from:date:message-id:subject:to; bh=ymHelyR9z04kPx1DdkRP5g9OdsoD4KsECc2SFnbDcpg=; b=a9LapkGHuQP4++E6thJpXt73KMNXsKvaA/Qq3Fdh5FPX4mHGl0BB5AyGlgrMVTgGgP RUD9FoyI9Qnu7Ixq5GtIk5Mhz34trSPVxBPoTv8vnCt/q/vS+oUR6fJKL6U0e/osd7eh 9qblpoD2ExYNEOn24HS8x8Av/XeggVynZQwVgi9MHdiWYX8ZH1iUjaiUarBP1YEu8kY0 8CyvigDw9NkDCqBx0Jb0HJQ4TxHGPG1IVecf3W1TitpgKLt9rM1jziY9GGCghrkkuqY0 Zgfx7GOdZRlal6465CDWgctD1pNLmjeeuUpQkbQfs45z3LCtI2gTki/5R6jDAapO0u/f cprg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to; bh=ymHelyR9z04kPx1DdkRP5g9OdsoD4KsECc2SFnbDcpg=; b=m0QfUiDag7uXSegFnzItNUk3Oll2HZVi7bAPu7aYRVB3unFSCLyq0WPrmbEmfXPoQF EG1xKBtyZJ9dwaeO6JmBSsMp0R9cUBEiakRc1gQnB1Xw5xX/cUJ0uogIeToXsk64KbU7 55wsnueXzUMBVlr57r8YHvgGwfnpLAom4Fgwb9Mw15SfZQ4Xg4uyzBWvyEKODtG3B7gB wgrKL8HP8K3tOoIYgVn/c9Y0aJUzOkaLBptfNaCLl1bdfz/+8Og0FTWwPBMO4VR0j9KZ BXcSfC1HWn14fZpMWgnXr9B4Z9rZSuaCT7VlB8BYVtul4BjUFCQptMw43VY2V+wLT/F/ qFng== X-Gm-Message-State: AKGB3mLBz+hn+Wi7jjijc8Gt2CrtgLAQH244x/C7E2S3kwLXu5/zl5NN 6AVwiyfaWpM9a63braSRjNYqodt2I23/yoISGkw8rg== X-Google-Smtp-Source: ACJfBotU04T27hv/ZYnNrK1diPmtwkeB7xzKnQxk+6g+soRg/UqTRA1piVqW3B7qJUwaoGQ6B5vkg/gweg0WGxNF3QY= X-Received: by 10.99.176.3 with SMTP id h3mr2233949pgf.207.1515012460689; Wed, 03 Jan 2018 12:47:40 -0800 (PST) Original-Received: by 10.100.131.3 with HTTP; Wed, 3 Jan 2018 12:47:39 -0800 (PST) X-Google-Sender-Auth: sDrNQiXK-fIpXewZKEwSbToEBww X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:141754 Archived-At: --001a114d07868cdd6f0561e55374 Content-Type: text/plain; charset="UTF-8" --text follows this line-- - Run `emacs -Q emacs_syntax_highlighting_bug.bash` (the latter file is attached). - Note the double quote mark on line 5. - Emacs incorrectly assumes that the corresponding closing double quote mark is the one on line 10, but in fact it is the one on line 11. - As a result, the rest of the script (i.e. beyond the double quote mark on line 10) has incorrect syntax highlighting. In GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.11) of 2017-09-12 on hullmann, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11902000 System Description: Debian GNU/Linux 9.3 (stretch) Configured using: `configure --build 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 --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp --without-gnutls --build 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 --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp --without-gnutls --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/emacs24-24.5+1=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -fno-PIE' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-z,relro -no-pie'' Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Shell-script Minor modes in effect: sh-electric-here-document-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Setting up indent for shell type bash Indentation variables are now local. Indentation setup for shell type bash Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils vc-git sh-script smie executable time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 80118 8190) (symbols 48 18142 0) (miscs 40 40 100) (strings 32 12168 4820) (string-bytes 1 311223) (vectors 16 9904) (vector-slots 8 403254 13521) (floats 8 63 299) (intervals 56 244 0) (buffers 960 13)) --001a114d07868cdd6f0561e55374 Content-Type: application/octet-stream; name="emacs_syntax_highlighting_bug.bash" Content-Disposition: attachment; filename="emacs_syntax_highlighting_bug.bash" Content-Transfer-Encoding: base64 X-Attachment-Id: file0 IyEvdXNyL2Jpbi9lbnYgYmFzaAoKZG93bmxvYWRfZ29ncygpIHsKICAgICMgRmV0Y2ggbGF0ZXN0 IHBhY2thZ2UsIHZpYSBHaXRIdWIgQVBJIHYzCiAgICB3Z2V0ICIkKGN1cmwgLUggXAogICAgICAg ICAnQWNjZXB0OiBhcHBsaWNhdGlvbi92bmQuZ2l0aHViLnYzK2pzb24nIFwKICAgICAgICAgLS1z aWxlbnQgXAogICAgICAgICAiaHR0cHM6Ly9hcGkuZ2l0aHViLmNvbS9yZXBvcy9nb2dpdHMvZ29n cy9yZWxlYXNlcy9sYXRlc3QiIFwKICAgICAgICB8IGdyZXAgYnJvd3Nlcl9kb3dubG9hZF91cmwg XAogICAgICAgIHwgY3V0IC1kICciJyAtZiA0IFwKICAgICAgICB8IGdyZXAgJ2xpbnV4X2FtZDY0 LnRhci5neiQnKSIKfQoKbWFpbigpIHsKICAgIGRvd25sb2FkX2dvZ3MKfQoKbWFpbgo= --001a114d07868cdd6f0561e55374--