branch: elpa/nginx-mode
commit 74c2a078e9cb8093e6ca805bb320a7dbf2f36efc
Merge: e9c268cd94 5a39466285
Author: Andrew J. Cosgriff <[email protected]>
Commit: GitHub <[email protected]>
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.