[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/julia-mode dc17943 351/352: Indent imports from submodule
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/julia-mode dc17943 351/352: Indent imports from submodule correctly (#154) |
Date: |
Sun, 29 Aug 2021 11:23:16 -0400 (EDT) |
branch: elpa/julia-mode
commit dc1794335bb584b5937e995d61ad4732f06dcd5a
Author: David Hanak <dhanak@gmail.com>
Commit: GitHub <noreply@github.com>
Indent imports from submodule correctly (#154)
* Indent using/import from submodules correctly
* Add changelog entry
---
CHANGELOG.md | 2 ++
julia-mode-tests.el | 9 +++++++++
julia-mode.el | 2 ++
3 files changed, 13 insertions(+)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 856dabe..5aa25dc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,7 @@
# Unreleased
+- fix indentation of submodule imports
+
# 0.4
- increase lookback
([#98](https://github.com/JuliaEditorSupport/julia-emacs/pull/98)), fixes
[#5](https://github.com/JuliaEditorSupport/julia-emacs/issues/5)
diff --git a/julia-mode-tests.el b/julia-mode-tests.el
index bb4af97..72314a6 100644
--- a/julia-mode-tests.el
+++ b/julia-mode-tests.el
@@ -390,6 +390,15 @@ notpartofit"
"using Foo: bar ,
baz,
quux
+notpartofit")
+ (julia--should-indent
+ "using Foo.Bar: bar ,
+baz,
+quux
+notpartofit"
+ "using Foo.Bar: bar ,
+ baz,
+ quux
notpartofit"))
(ert-deftest julia--test-indent-anonymous-function ()
diff --git a/julia-mode.el b/julia-mode.el
index a8f8e78..04437f7 100644
--- a/julia-mode.el
+++ b/julia-mode.el
@@ -428,6 +428,8 @@ symbol, gives up when this is not true."
(setf module (match-string-no-properties 1))))
((looking-at (rx (* (or word (syntax symbol))) (0+ space) ","))
(when module (setf done 'broken)))
+ ((looking-at (rx (* (or word (syntax symbol))) "."))
+ (setf module (concat (match-string-no-properties 0) module)))
(t (setf done 'broken)))))
(if (eq done 'broken)
nil
- [nongnu] elpa/julia-mode c9d8230 329/352: Give \ punctuation syntax outside of strings (#113), (continued)
- [nongnu] elpa/julia-mode c9d8230 329/352: Give \ punctuation syntax outside of strings (#113), ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 6b7e956 321/352: Fix for derived parent mode (#66), ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 9dcabbc 334/352: Simplify the logic to find the end of last block, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 796ddfd 338/352: Apply proper syntax to triple-quoted cmds, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 505d71b 339/352: Add all problemmatic strings from issue #15 to tests, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode b800403 326/352: Font lock tweaks (#102), ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 8bfc709 325/352: bump version for release, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode a31868d 340/352: font-lock ccall as a builtin, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode a4eeb6c 343/352: Merge pull request #134 from non-Jedi/font-lock-builtin-face, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode a1ba9a0 352/352: add logo, README tweaks, add section on testing (#163), ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode dc17943 351/352: Indent imports from submodule correctly (#154),
ELPA Syncer <=
- [nongnu] elpa/julia-mode af5eb63 273/352: short function syntax: support return type declaration, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 1eacdc6 298/352: Create FUNDING.yml, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 023df24 322/352: add latest PR to changelog, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 140369e 337/352: Simplify char-regex, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 10b0eff 286/352: beginning/end of defun functions, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 6408b96 306/352: Transition to cl-lib, drop support for Emacs 23., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 4f024cb 313/352: make loading "julia-latexsubs" work when using `eval-buffer` (#83), ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 10ce821 310/352: Add MELPA badge, clarify installation., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 088fb0b 314/352: Load latexsub table as a feature, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 66ef2db 317/352: Merge branch 'master' into tp/drop-emacs-23, ELPA Syncer, 2021/08/29