emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/nix-mode 2be81fe55b 074/500: Get rid of match-end.


From: ELPA Syncer
Subject: [nongnu] elpa/nix-mode 2be81fe55b 074/500: Get rid of match-end.
Date: Sat, 29 Jan 2022 08:26:37 -0500 (EST)

branch: elpa/nix-mode
commit 2be81fe55bbff72be0cfd441748304e78d58ae4b
Author: Matthew Bauer <mjbauer95@gmail.com>
Commit: Matthew Bauer <mjbauer95@gmail.com>

    Get rid of match-end.
    
    Not relevant without regexp match.
---
 nix-mode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nix-mode.el b/nix-mode.el
index d995504b4b..0af617d135 100644
--- a/nix-mode.el
+++ b/nix-mode.el
@@ -93,15 +93,15 @@
 (defun nix-syntax-propertize-multiline-string ()
   "Set syntax properies for multiline string delimiters."
   (let* ((start (match-beginning 0))
-         (end (match-end 0))
          (context (save-excursion (save-match-data (syntax-ppss start))))
          (string-type (nth 3 context)))
+
     (pcase string-type
 
       (`t
        ;; inside a multiline string
        ;; ending multi-line string delimiter
-       (put-text-property (1- end) end
+       (put-text-property (1+ start) (+ 2 start)
                           'syntax-table (string-to-syntax "|")))
 
       (`nil



reply via email to

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