emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 01832ec: * lisp/progmodes/sh-script.el: Test "in-st


From: Stefan Monnier
Subject: [Emacs-diffs] master 01832ec: * lisp/progmodes/sh-script.el: Test "in-string" of the right char!
Date: Tue, 29 Aug 2017 09:44:26 -0400 (EDT)

branch: master
commit 01832ec21f1a880366f7d957e84b0d9c4d75b182
Author: Stefan Monnier <address@hidden>
Commit: Stefan Monnier <address@hidden>

    * lisp/progmodes/sh-script.el: Test "in-string" of the right char!
    
    (sh-syntax-propertize-function): Fix off-by-one error.
    Fixes bug#23526.
---
 lisp/progmodes/sh-script.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el
index 54c47b7..ea2e984 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]