[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/nix-mode ff550f9bbd 036/500: Add comments.
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/nix-mode ff550f9bbd 036/500: Add comments. |
Date: |
Sat, 29 Jan 2022 08:26:33 -0500 (EST) |
branch: elpa/nix-mode
commit ff550f9bbd8422c7c2e2269e82d69b811a5dcf57
Author: Matthew Bauer <mjbauer95@gmail.com>
Commit: Matthew Bauer <mjbauer95@gmail.com>
Add comments.
---
nix-mode.el | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/nix-mode.el b/nix-mode.el
index 6ea8a238f6..fa727c8a71 100644
--- a/nix-mode.el
+++ b/nix-mode.el
@@ -168,7 +168,7 @@ If a close brace `}' ends an antiquote, the next character
begins a string."
(save-excursion
(beginning-of-line)
(skip-chars-forward "[:space:]")
- (or
+ (or ;; any of these should -1 indent level
(looking-at ")")
(looking-at "}")
(looking-at "''")
@@ -185,10 +185,15 @@ If a close brace `}' ends an antiquote, the next
character begins a string."
(forward-line -1)
(end-of-line)
(skip-chars-backward "\n[:space:]")
+
+ ;; skip through any comments in the way
(while (nth 4 (syntax-ppss))
(goto-char (nth 8 (syntax-ppss)))
(skip-chars-backward "\n[:space:]"))
+
(forward-char -1)
+
+ ;; any of these should be ignored
(unless (or
(and (looking-at "/") (looking-back "*"))
(looking-at ";")
- [nongnu] elpa/nix-mode d2f4a629a8 258/500: Only show derivations in nix store, (continued)
- [nongnu] elpa/nix-mode d2f4a629a8 258/500: Only show derivations in nix store, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode d0eb92e97a 263/500: Package linting, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 38061187ca 265/500: Add nix-read-file & nix-read-attr, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 7d65288c72 266/500: Fix erroneous use of function as variable, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 8b3a9927e7 270/500: Add dependency on json-mode, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 7a7f600133 288/500: travis: Add travis badge, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode da16900326 293/500: tests: Add a testcase with broken identation to have as a check if it indents at all, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode aa43b72a45 014/500: Revert "Use warning font lock for upper case vars", ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 5a2674592f 033/500: Don't save-excursion for nix-indent-line., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 233bf03b96 040/500: Add nixfmt command., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode ff550f9bbd 036/500: Add comments.,
ELPA Syncer <=
- [nongnu] elpa/nix-mode ea95e3c9c6 068/500: Add nix-prettify-mode.el., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 6eaf2a97d2 069/500: Fixup hanging indent., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode e53d99d840 064/500: Ignore '* chars in syntax propertize., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 9b705381c4 063/500: Fix antiquote highlighting., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 0624820fd3 067/500: Fix org-mode fontification error., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 3338f5997e 056/500: Fix beginning of buffer issue, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 0f01eecdaa 050/500: Make sure everything starts at beginning of line., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 03f462ef34 062/500: Add "+" to hanging indent list., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode ad09b3be7f 066/500: Fix flycheck errors., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 6534f146eb 065/500: Formatting, ELPA Syncer, 2022/01/29