]> git.eshelyaron.com Git - emacs.git/commitdiff
(sh-font-lock-paren): Add [ and ] to the
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 4 Jul 2003 20:37:49 +0000 (20:37 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 4 Jul 2003 20:37:49 +0000 (20:37 +0000)
set of chars allowed unquoted in a case pattern.

lisp/progmodes/sh-script.el

index bf5891db6502d533d636c6cd3867c7d78dd30610..7fc3671d4e608a09cee3efbfe5d28f8821b21291 100644 (file)
@@ -904,7 +904,7 @@ be indented (i.e. a <<- was used rather than just <<)."
          ;; Skip through one pattern
          (while
              (or (/= 0 (skip-syntax-backward "w_"))
-                 (/= 0 (skip-chars-backward "?*/\\"))
+                 (/= 0 (skip-chars-backward "?[]*/\\"))
                  (and (sh-is-quoted-p (1- (point)))
                       (goto-char (- (point) 2)))
                  (when (memq (char-before) '(?\" ?\'))