diff options
| author | Stefan Monnier <monnier@iro.umontreal.ca> | 2017-08-29 09:44:19 -0400 |
|---|---|---|
| committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2017-08-29 09:44:19 -0400 |
| commit | 01832ec21f1a880366f7d957e84b0d9c4d75b182 (patch) | |
| tree | e482ab130e7ed8be08b8a945fe3144ec1eb18896 | |
| parent | 3ad8ca429bac5e1354881cf4411d6f41dab36b44 (diff) | |
| download | emacs-01832ec21f1a880366f7d957e84b0d9c4d75b182.tar.gz | |
* lisp/progmodes/sh-script.el: Test "in-string" of the right char!
(sh-syntax-propertize-function): Fix off-by-one error.
Fixes bug#23526.
| -rw-r--r-- | lisp/progmodes/sh-script.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el index 54c47b719fb..ea2e98424ff 100644 --- a/lisp/progmodes/sh-script.el +++ b/lisp/progmodes/sh-script.el @@ -1138,7 +1138,7 @@ subshells can nest." (syntax-propertize-rules (sh-here-doc-open-re (2 (sh-font-lock-open-heredoc - (match-beginning 0) (match-string 1) (match-beginning 2)))) + (1+ (match-beginning 0)) (match-string 1) (match-beginning 2)))) ("\\s|" (0 (prog1 nil (sh-syntax-propertize-here-doc end)))) ;; A `#' begins a comment when it is unquoted and at the ;; beginning of a word. In the shell, words are separated by |
