branch: elpa/nix-mode
commit 70af0efc9f101c4dc817a6591508daf2377b0eb3
Author: Matthew Bauer <[email protected]>
Commit: Matthew Bauer <[email protected]>

    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