comparison 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
comparison
equal deleted inserted replaced
66268:edfe61dd2874 66269:5ab4a52a31ac
995 ;; A `#' begins a comment when it is unquoted and at the beginning of a 995 ;; A `#' begins a comment when it is unquoted and at the beginning of a
996 ;; word. In the shell, words are separated by metacharacters. 996 ;; word. In the shell, words are separated by metacharacters.
997 ;; The list of special chars is taken from the single-unix spec 997 ;; The list of special chars is taken from the single-unix spec
998 ;; of the shell command language (under `quoting') but with `$' removed. 998 ;; of the shell command language (under `quoting') but with `$' removed.
999 `(("[^|&;<>()`\\\"' \t\n]\\(#+\\)" 1 ,sh-st-symbol) 999 `(("[^|&;<>()`\\\"' \t\n]\\(#+\\)" 1 ,sh-st-symbol)
1000 ;; Make sure $@ and @? are correctly recognized as sexps.
1001 ("\\$\\([?@]\\)" 1 ,sh-st-symbol)
1000 ;; Find HEREDOC starters and add a corresponding rule for the ender. 1002 ;; Find HEREDOC starters and add a corresponding rule for the ender.
1001 (sh-font-lock-here-doc 1003 (sh-font-lock-here-doc
1002 (2 (sh-font-lock-open-heredoc 1004 (2 (sh-font-lock-open-heredoc
1003 (match-beginning 0) (match-string 1)) nil t) 1005 (match-beginning 0) (match-string 1)) nil t)
1004 (5 (sh-font-lock-close-heredoc 1006 (5 (sh-font-lock-close-heredoc