# HG changeset patch # User Stefan Monnier # Date 1129876237 0 # Node ID 5ab4a52a31ac689cac21423953286aea38921527 # Parent edfe61dd287410cc445e1b30115f4f9b1a593591 (sh-font-lock-syntactic-keywords): Make $@ and $? into sexps. diff -r edfe61dd2874 -r 5ab4a52a31ac lisp/progmodes/sh-script.el --- 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