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

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

[nongnu] elpa/nix-mode 70af0efc9f 076/500: Fix antiquote closing brace.


From: ELPA Syncer
Subject: [nongnu] elpa/nix-mode 70af0efc9f 076/500: Fix antiquote closing brace.
Date: Sat, 29 Jan 2022 08:26:37 -0500 (EST)

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

    Fix antiquote closing brace.
    
    We only want the } to be set as quote, not the following char.
    
    Fixes #6.
---
 nix-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nix-mode.el b/nix-mode.el
index f1f76d54cd..cdaafab45d 100644
--- a/nix-mode.el
+++ b/nix-mode.el
@@ -131,7 +131,7 @@ If a close brace `}' ends an antiquote, the next character 
begins a string."
 
     (when open ;; a corresponding open-brace was found
       (when (get-text-property open 'nix-syntax-antiquote)
-       (put-text-property (1+ start) (+ 2 start)
+       (put-text-property start (1+ start)
                           'syntax-table (string-to-syntax "|"))
        (put-text-property start (1+ start)
                           'nix-syntax-antiquote t)))))



reply via email to

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