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

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

[nongnu] elpa/nix-mode 9015ef6603 029/500: check beginning for comment i


From: ELPA Syncer
Subject: [nongnu] elpa/nix-mode 9015ef6603 029/500: check beginning for comment indent
Date: Sat, 29 Jan 2022 08:26:33 -0500 (EST)

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

    check beginning for comment indent
---
 nix-mode.el | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/nix-mode.el b/nix-mode.el
index 71b22d99d9..f2575b9767 100644
--- a/nix-mode.el
+++ b/nix-mode.el
@@ -168,11 +168,10 @@ If a close brace `}' ends an antiquote, the next 
character begins a string."
   (interactive)
   (save-excursion
     (cond
-     ;; string
-     ;; ((nth 3 (syntax-ppss)) (indent-relative))
-
      ;; comment
-     ((nth 4 (syntax-ppss)) nil)
+     ((save-excursion
+       (beginning-of-line)
+       (nth 4 (syntax-ppss))) nil)
 
      ;; else
      (t (indent-line-to (nix-indent-level))))))



reply via email to

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