[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/nix-mode 83229f0d4c 041/500: Fix flycheck errors.
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/nix-mode 83229f0d4c 041/500: Fix flycheck errors. |
Date: |
Sat, 29 Jan 2022 08:26:34 -0500 (EST) |
branch: elpa/nix-mode
commit 83229f0d4ca56f59d98c1b8d60b0508a8864a72e
Author: Matthew Bauer <mjbauer95@gmail.com>
Commit: Matthew Bauer <mjbauer95@gmail.com>
Fix flycheck errors.
---
nix-mode.el | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/nix-mode.el b/nix-mode.el
index d7da9ee0c7..ae02f9ad81 100644
--- a/nix-mode.el
+++ b/nix-mode.el
@@ -150,7 +150,8 @@ If a close brace `}' ends an antiquote, the next character
begins a string."
start end))
(defun nix-indent-level-parens (p1)
- "Find indent level based on parens."
+ "Find indent level based on parens.
+P1 current position"
(save-excursion
(beginning-of-line)
(let ((p2 (nth 1 (syntax-ppss))))
@@ -196,7 +197,7 @@ If a close brace `}' ends an antiquote, the next character
begins a string."
;; any of these should be ignored
(unless (or
- (and (looking-at "/") (looking-back "*"))
+ (and (looking-at "/") (looking-back "*" -1 nil))
(looking-at ";")
(looking-at ":")
(looking-at "{")
@@ -269,8 +270,7 @@ If a close brace `}' ends an antiquote, the next character
begins a string."
(defvar nix-mode-map (make-sparse-keymap)
"Local keymap used for Nix mode.")
-(defun nix-create-keymap ()
- "Create the keymap associated with the Nix mode."
+(defun nix-create-keymap () "Create the keymap associated with the Nix mode."
(define-key nix-mode-map "\C-c\C-g" 'nix-visit-file)
(define-key nix-mode-map "\C-c\C-f" 'nix-format-buffer))
@@ -324,16 +324,16 @@ The hook `nix-mode-hook' is run when Nix mode is started.
;; Look at text properties when parsing
(setq-local parse-sexp-lookup-properties t)
- ;; Automatic indentation [C-j].
+ ;; Automatic indentation [C-j]
(setq-local indent-line-function 'nix-indent-line)
- ;; Indenting of comments.
+ ;; Indenting of comments
(setq-local comment-start "# ")
(setq-local comment-end "")
(setq-local comment-start-skip "\\(^\\|\\s-\\);?#+ *")
(setq-local comment-multi-line t)
- ;; Filling of comments.
+ ;; Filling of comments
(setq-local adaptive-fill-mode t)
(setq-local paragraph-start "[ \t]*\\(#+[ \t]*\\)?$")
(setq-local paragraph-separate paragraph-start)
- [nongnu] elpa/nix-mode 7d09073976 424/500: Merge pull request #121 from znewman01/fixbuild, (continued)
- [nongnu] elpa/nix-mode 7d09073976 424/500: Merge pull request #121 from znewman01/fixbuild, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 4941961c75 059/500: Get rid of extra hanging indent matches., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode c577957d66 347/500: Merge pull request #85 from NixOS/fix-84, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode cccd68768b 319/500: Install info page to the right location, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode e820157994 338/500: Merge pull request #82 from jabranham/comp-warns, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 7556c032dc 421/500: Use the located nixfmt binary for formatting., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode df4ba688a7 435/500: Merge branch 'nix-search-updates', ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 4528033194 018/500: Add "nix-mode-reload" function., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode f3b4215166 004/500: Update metadata, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 69c7c87caa 017/500: Sert comment-multi-line., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 83229f0d4c 041/500: Fix flycheck errors.,
ELPA Syncer <=
- [nongnu] elpa/nix-mode 76ad5882f0 046/500: format, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 3ef4647aa2 052/500: Fixup lets/ins counting., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 0ad464e25a 058/500: Add ']' to match closing parens., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 376cbff828 054/500: More let fixes., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 1a1ce340af 070/500: Fix indentation case when '{' at beginning., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode dc705bb4df 057/500: Disable generic hanging indent., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 2be81fe55b 074/500: Get rid of match-end., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 4ce19a966b 095/500: Merge branch 'ljli-fontication', ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 1e58da56ac 083/500: Fix var name nix-err-msg-re, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode b1078c6add 092/500: Add case sensitive searching, ELPA Syncer, 2022/01/29