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

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

[debbugs-tracker] bug#11946: closed (syntax highlighting error in sh-mod


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#11946: closed (syntax highlighting error in sh-mode )
Date: Tue, 17 Jul 2012 08:46:02 +0000

Your message dated Tue, 17 Jul 2012 04:38:54 -0400
with message-id <address@hidden>
and subject line Re: bug#11946: syntax highlighting error in sh-mode
has caused the debbugs.gnu.org bug report #11946,
regarding syntax highlighting error in sh-mode 
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
11946: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11946
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: syntax highlighting error in sh-mode Date: Sun, 15 Jul 2012 22:46:27 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux)
Hi, the following after the "#" is taken as a comment, which is wrong:

VERSION[${#VERSION[*]}]=$i

-- 
  Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997 




--- End Message ---
--- Begin Message --- Subject: Re: bug#11946: syntax highlighting error in sh-mode Date: Tue, 17 Jul 2012 04:38:54 -0400 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)
> Hi, the following after the "#" is taken as a comment, which is wrong:
> VERSION[${#VERSION[*]}]=$i

Thanks, installed the patch below in trunk to fix this problem.


        Stefan


--- lisp/progmodes/sh-script.el 2012-07-10 11:51:54 +0000
+++ lisp/progmodes/sh-script.el 2012-07-17 08:19:01 +0000
@@ -1087,7 +1087,7 @@
     ;; metacharacters.  The list of special chars is taken from
     ;; the single-unix spec of the shell command language (under
     ;; `quoting') but with `$' removed.
-    ("[^|&;<>()`\\\"' \t\n]\\(#+\\)" (1 "_"))
+    ("\\(?:[^|&;<>()`\\\"' \t\n]\\|\\${\\)\\(#+\\)" (1 "_"))
     ;; In a '...' the backslash is not escaping.
     ("\\(\\\\\\)'" (1 (sh-font-lock-backslash-quote)))
     ;; Make sure $@ and $? are correctly recognized as sexps.



--- End Message ---

reply via email to

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