(sh-font-lock-paren): Handle continued lines in patterns.

This commit is contained in:
Stefan Monnier 2005-11-21 22:24:13 +00:00
parent f86711a482
commit bd24684be0
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
* progmodes/sh-script.el (sh-font-lock-paren): Handle continued lines
in patterns.
2005-11-21 Juri Linkov <juri@jurta.org>
* custom.el (defcustom): Update link types in docstring.

View file

@ -986,7 +986,11 @@ Point is at the beginning of the next line."
(when (memq (char-before) '(?\" ?\'))
(condition-case nil (progn (backward-sexp 1) t)
(error nil)))))
(forward-comment (- (point-max)))
(while (progn
(forward-comment (- (point-max)))
;; Maybe we've bumped into an escaped newline.
(sh-is-quoted-p (point)))
(backward-char 1))
(when (eq (char-before) ?|)
(backward-char 1) t)))
(when (save-excursion (backward-char 2) (looking-at ";;\\|in"))