[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/progmodes/sh-script.el,v
From: |
Stefan Monnier |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/progmodes/sh-script.el,v |
Date: |
Mon, 16 Jul 2007 16:01:06 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Stefan Monnier <monnier> 07/07/16 16:01:05
Index: progmodes/sh-script.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/progmodes/sh-script.el,v
retrieving revision 1.198
retrieving revision 1.199
diff -u -b -r1.198 -r1.199
--- progmodes/sh-script.el 18 Jun 2007 20:10:06 -0000 1.198
+++ progmodes/sh-script.el 16 Jul 2007 16:00:34 -0000 1.199
@@ -986,7 +986,7 @@
;; This looks silly, but it's because `sh-here-doc-re' keeps changing.
(re-search-forward sh-here-doc-re limit t))
-(defun sh-quoted-subshell (limit)
+(defun sh-font-lock-quoted-subshell (limit)
"Search for a subshell embedded in a string.
Find all the unescaped \" characters within said subshell, remembering that
subshells can nest."
@@ -1018,6 +1018,7 @@
(t (push state states) (setq state 'backquote))))
(?\$ (if (not (eq (char-after (1+ (point))) ?\())
nil
+ (forward-char 1)
(case state
(t (push state states) (setq state 'code)))))
(?\( (case state
@@ -1026,7 +1027,7 @@
(?\) (case state
(double-quote nil)
(t (setq state (pop states)))))
- (t (error "Internal error in sh-quoted-subshell")))
+ (t (error "Internal error in sh-font-lock-quoted-subshell")))
(forward-char 1)))
t))
@@ -1111,7 +1112,7 @@
(")" 0 (sh-font-lock-paren (match-beginning 0)))
;; highlight (possibly nested) subshells inside "" quoted regions
correctly.
;; This should be at the very end because it uses syntax-ppss.
- (sh-quoted-subshell)))
+ (sh-font-lock-quoted-subshell)))
(defun sh-font-lock-syntactic-face-function (state)
(let ((q (nth 3 state)))
- [Emacs-diffs] Changes to emacs/lisp/progmodes/sh-script.el,v,
Stefan Monnier <=