diff options
| author | Lawrence Mitchell | 2011-02-18 16:46:08 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2011-02-18 16:46:08 -0500 |
| commit | e697fcfc0121d210c7acb16e3306cf7c552cf633 (patch) | |
| tree | 19532cdb03a53d7092a6b87b1425465307cd6cd3 /lisp/progmodes/sh-script.el | |
| parent | 4114ed61cd3edf2a0d54aff4cfc625d13abd6e0e (diff) | |
| download | emacs-e697fcfc0121d210c7acb16e3306cf7c552cf633.tar.gz emacs-e697fcfc0121d210c7acb16e3306cf7c552cf633.zip | |
* lisp/progmodes/sh-script.el (sh-syntax-propertize-here-doc):
Bind case-fold-search to nil when looking for end of here-doc.
Fixes: debbugs:8053
Diffstat (limited to 'lisp/progmodes/sh-script.el')
| -rw-r--r-- | lisp/progmodes/sh-script.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el index 900072fe356..7b84cc89d08 100644 --- a/lisp/progmodes/sh-script.el +++ b/lisp/progmodes/sh-script.el | |||
| @@ -969,7 +969,8 @@ Point is at the beginning of the next line." | |||
| 969 | (defun sh-syntax-propertize-here-doc (end) | 969 | (defun sh-syntax-propertize-here-doc (end) |
| 970 | (let ((ppss (syntax-ppss))) | 970 | (let ((ppss (syntax-ppss))) |
| 971 | (when (eq t (nth 3 ppss)) | 971 | (when (eq t (nth 3 ppss)) |
| 972 | (let ((key (get-text-property (nth 8 ppss) 'sh-here-doc-marker))) | 972 | (let ((key (get-text-property (nth 8 ppss) 'sh-here-doc-marker)) |
| 973 | (case-fold-search nil)) | ||
| 973 | (when (re-search-forward | 974 | (when (re-search-forward |
| 974 | (concat "^\\([ \t]*\\)" (regexp-quote key) "\\(\n\\)") | 975 | (concat "^\\([ \t]*\\)" (regexp-quote key) "\\(\n\\)") |
| 975 | end 'move) | 976 | end 'move) |