[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))))))
- [nongnu] elpa/nix-mode 14c3476ba9 020/500: Custom line indenter., (continued)
- [nongnu] elpa/nix-mode 14c3476ba9 020/500: Custom line indenter., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode b4b7edb246 012/500: Move some builtins to warnings., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 22500b7f72 038/500: fix tabbing, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode d8b088a4e2 034/500: Disable string indenting again, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 3ad8e224d7 043/500: Use looking-back for hanging indent., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode ec9cf2f4e5 061/500: Remove nix-syntax-propertize-escaped-antiquote., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode c339fc9062 072/500: More small nitpicks., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 1cc3cffa29 060/500: Pick up extra "let" found in acme.nix., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 1772d1f0db 077/500: Fixup syntax entry., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode fa7a4a0d4d 078/500: Update README.md, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 9015ef6603 029/500: check beginning for comment indent,
ELPA Syncer <=
- [nongnu] elpa/nix-mode 0ada62bbee 091/500: Merge pull request #11 from matthewbauer/completion, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 2de7d1d585 088/500: Don't require company to be installed., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 8d2a304865 098/500: Fontification: smoked out corner cases, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 702f62abff 103/500: lexical bindings, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 03e39da643 099/500: Fix flycheck lexical-binding complaints., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 1c54c72161 121/500: Remove visit-file., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 5e943a77e8 133/500: Fix syntax error, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 804ec4e7de 122/500: Remove visit file /2, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 3957a90b1a 125/500: Add `null` to list of Nix builtins, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 046afc4b4d 127/500: Rework indentation, ELPA Syncer, 2022/01/29