Changeset 4140 for trunk/lisp/progmodes/sh-script.el
- Timestamp:
- 08/10/06 11:19:54 (2 years ago)
- Files:
-
- trunk/lisp/progmodes/sh-script.el (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lisp/progmodes/sh-script.el
r4131 r4140 987 987 ;; effort to handle multiline cases correctly, so it ends up being 988 988 ;; rather flakey. 989 (when (re-search-forward "\"\\(?:\\(?:.\\|\n\\)*?[^\\]\\(?:\\\\\\\\\\)*\\)??\\(\\$(\\|`\\)" limit t) 989 (when (and (re-search-forward "\"\\(?:\\(?:.\\|\n\\)*?[^\\]\\(?:\\\\\\\\\\)*\\)??\\(\\$(\\|`\\)" limit t) 990 ;; Make sure the " we matched is an opening quote. 991 (eq ?\" (nth 3 (syntax-ppss)))) 990 992 ;; bingo we have a $( or a ` inside a "" 991 993 (let ((char (char-after (point))) … … 1082 1084 ;; Make sure $@ and @? are correctly recognized as sexps. 1083 1085 ("\\$\\([?@]\\)" 1 ,sh-st-symbol) 1084 ;; highlight (possibly nested) subshells inside "" quoted regions correctly.1085 (sh-quoted-subshell1086 (1 (sh-apply-quoted-subshell) t t))1087 1086 ;; Find HEREDOC starters and add a corresponding rule for the ender. 1088 1087 (sh-font-lock-here-doc … … 1094 1093 nil t)) 1095 1094 ;; Distinguish the special close-paren in `case'. 1096 (")" 0 (sh-font-lock-paren (match-beginning 0))))) 1095 (")" 0 (sh-font-lock-paren (match-beginning 0))) 1096 ;; highlight (possibly nested) subshells inside "" quoted regions correctly. 1097 ;; This should be at the very end because it uses syntax-ppss. 1098 (sh-quoted-subshell 1099 (1 (sh-apply-quoted-subshell) t t)))) 1097 1100 1098 1101 (defun sh-font-lock-syntactic-face-function (state)
