branch: elpa/julia-mode commit 892beb166ab77360fd758d4d7446540218eed4e0 Author: Dan Schmidt <d...@dfan.org> Commit: Yichao Yu <yyc1...@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")))