Mercurial > emacs
diff lisp/progmodes/sh-script.el @ 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 | 9cf3996bb877 |
children | a11fdee52c05 0ca0d9181b5e |
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