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

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

[nongnu] elpa/julia-mode 892beb1 231/352: Fix #12528


From: ELPA Syncer
Subject: [nongnu] elpa/julia-mode 892beb1 231/352: Fix #12528
Date: Sun, 29 Aug 2021 11:22:51 -0400 (EDT)

branch: elpa/julia-mode
commit 892beb166ab77360fd758d4d7446540218eed4e0
Author: Dan Schmidt <dfan@dfan.org>
Commit: Yichao Yu <yyc1992@gmail.com>

    Fix #12528
---
 julia-mode.el | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/julia-mode.el b/julia-mode.el
index 8a779d7..abab7fc 100644
--- a/julia-mode.el
+++ b/julia-mode.el
@@ -402,6 +402,8 @@ high.")
 containing paren before point, so we can align succeeding code
 with it. Returns nil if we're not within nested parens."
   (save-excursion
+    ;; Back up to previous line (beginning-of-line was already called)
+    (backward-char)
     (let ((min-pos (max (- (point) julia-max-paren-lookback)
                         (point-min)))
           (open-count 0))
@@ -612,6 +614,14 @@ c"
 # b =
 c"))
 
+  (ert-deftest julia--test-indent-leading-paren ()
+    "`(` at the beginning of a line should not affect indentation."
+    (julia--should-indent
+     "
+(1)"
+     "
+(1)"))
+
   (defun julia--run-tests ()
     (interactive)
     (ert-run-tests-interactively "julia--test")))



reply via email to

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