changeset 66269:5ab4a52a31ac

(sh-font-lock-syntactic-keywords): Make $@ and $? into sexps.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Fri, 21 Oct 2005 06:30:37 +0000
parents edfe61dd2874
children f5f302f0d964
files lisp/progmodes/sh-script.el
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/sh-script.el	Fri Oct 21 06:29:52 2005 +0000
+++ b/lisp/progmodes/sh-script.el	Fri Oct 21 06:30:37 2005 +0000
@@ -997,6 +997,8 @@
   ;; 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 ,sh-st-symbol)
+    ;; Make sure $@ and @? are correctly recognized as sexps.
+    ("\\$\\([?@]\\)" 1 ,sh-st-symbol)
     ;; Find HEREDOC starters and add a corresponding rule for the ender.
     (sh-font-lock-here-doc
      (2 (sh-font-lock-open-heredoc