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

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

[nongnu] elpa/nginx-mode 74c2a078e9 4/5: Merge pull request #21 from ryu


From: ELPA Syncer
Subject: [nongnu] elpa/nginx-mode 74c2a078e9 4/5: Merge pull request #21 from ryuslash/indent-closing-brace-with-comment-fix
Date: Fri, 12 Apr 2024 01:00:08 -0400 (EDT)

branch: elpa/nginx-mode
commit 74c2a078e9cb8093e6ca805bb320a7dbf2f36efc
Merge: e9c268cd94 5a39466285
Author: Andrew J. Cosgriff <andrew@cosgriff.name>
Commit: GitHub <noreply@github.com>

    Merge pull request #21 from ryuslash/indent-closing-brace-with-comment-fix
    
    Allow anything to follow a closing brace at start of line
---
 nginx-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nginx-mode.el b/nginx-mode.el
index d63733250a..1589d50601 100644
--- a/nginx-mode.el
+++ b/nginx-mode.el
@@ -96,7 +96,7 @@ of the closing brace of a block."
           (block-indent (nginx-block-indent))
           cur-indent)
       (cond
-       ((and (looking-at "^\\s-*}\\s-*$") block-indent)
+       ((and (looking-at "^\\s-*}") block-indent)
         ;; This line contains a closing brace and we're at the inner
         ;; block, so we should indent it matching the indentation of
         ;; the opening brace of the block.



reply via email to

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