[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/julia-mode 8dd023d 223/352: julia-paren-indent: docstring,
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/julia-mode 8dd023d 223/352: julia-paren-indent: docstring, test |
Date: |
Sun, 29 Aug 2021 11:22:49 -0400 (EDT) |
branch: elpa/julia-mode
commit 8dd023d8cc1852649bfc15912b5a1ba612a559cc
Author: Dan Schmidt <dfan@dfan.org>
Commit: Yichao Yu <yyc1992@gmail.com>
julia-paren-indent: docstring, test
---
julia-mode.el | 19 +++++++++++++++----
1 file changed, 15 insertions(+), 4 deletions(-)
diff --git a/julia-mode.el b/julia-mode.el
index 8ff40d1..368b5ce 100644
--- a/julia-mode.el
+++ b/julia-mode.el
@@ -356,9 +356,9 @@ This variable has a moderate effect on indent performance
if set too
high.")
(defun julia-paren-indent ()
- "Return the column position of the first non-blank character
-after the innermost containing paren before point. Returns nil if
-we're not within nested parens."
+ "Return the column of the text following the innermost
+containing paren before point, so we can align succeeding code
+with it. Returns nil if we're not within nested parens."
(save-excursion
(let ((min-pos (max (- (point) julia-max-paren-lookback)
(point-min)))
@@ -513,7 +513,7 @@ end"
end"))
(ert-deftest julia--test-indent-paren ()
- "We should indent to line up with open parens."
+ "We should indent to line up with the text after an open paren."
(julia--should-indent
"
foobar(bar,
@@ -522,6 +522,17 @@ baz)"
foobar(bar,
baz)"))
+ (ert-deftest julia--test-indent-paren-space ()
+ "We should indent to line up with the text after an open
+paren, even if there are additional spaces."
+ (julia--should-indent
+ "
+foobar( bar,
+baz )"
+ "
+foobar( bar,
+ baz )"))
+
(ert-deftest julia--test-indent-equals ()
"We should increase indent on a trailing =."
(julia--should-indent
- [nongnu] elpa/julia-mode ab58fb7 193/352: Update mailmap, (continued)
- [nongnu] elpa/julia-mode ab58fb7 193/352: Update mailmap, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 96d6597 194/352: Fixing highlighting of long character escape sequences., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode ca2fe4b 195/352: Removing julia-in-char., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode ea54e19 196/352: Fontify strings and chars as strings, not keywords., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 80c6754 197/352: Silencing byte-compiler warning., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode e4d0e09 199/352: Highlight quoted symbols, e.g. :foo., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 4b22a79 205/352: julia-mode.el: remove types that are removed or deprecated, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode f84a425 219/352: Clean up stagedfunction, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode f378cbc 208/352: Mailmap update., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode f3b490b 210/352: Added inferior-julia comint mode, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 8dd023d 223/352: julia-paren-indent: docstring, test,
ELPA Syncer <=
- [nongnu] elpa/julia-mode 8d6ea60 233/352: Fix #11549 (top level after paren-indented line), ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 9cbde7b 236/352: julia-mode: Move tests to new file and improve, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 1f06e85 234/352: Alias `run-julia` to `inferior-julia` in julia-mode.el, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode a82e629 239/352: julia-mode: Indent manually inside strings with \n, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 1746c4b 238/352: julia-mode: Improve paren indent perf, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 44c9959 241/352: julia-mode: Fix #15461, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 4f56ded 258/352: make lookback distance customizable, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 362be60 255/352: Merge pull request #26 from JeffBezanson/master, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 6add61b 254/352: fix indenting after commented `end`, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 8818ede 245/352: fix ignoring of keywords inside comments, ELPA Syncer, 2021/08/29