[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/julia-mode 839726a 336/352: Merge pull request #123 from r
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/julia-mode 839726a 336/352: Merge pull request #123 from ronisbr/master |
Date: |
Sun, 29 Aug 2021 11:23:13 -0400 (EDT) |
branch: elpa/julia-mode
commit 839726af374991223ffe56f7e7d10bef81033d09
Merge: 88d7d87 c45c786
Author: Tamas K. Papp <tkpapp@gmail.com>
Commit: GitHub <noreply@github.com>
Merge pull request #123 from ronisbr/master
Do not consider `:end` as block ending
---
julia-mode-tests.el | 19 +++++++++++++++++++
julia-mode.el | 3 +--
2 files changed, 20 insertions(+), 2 deletions(-)
diff --git a/julia-mode-tests.el b/julia-mode-tests.el
index 8ca4299..bafff50 100644
--- a/julia-mode-tests.el
+++ b/julia-mode-tests.el
@@ -433,6 +433,25 @@ function( i=1:2 )
end
end")
+(ert-deftest julia--test-indent-ignore-:end-as-block-ending ()
+ "Do not consider `:end` as a block ending."
+ (julia--should-indent
+ "if a == :end
+r = 1
+end"
+ "if a == :end
+ r = 1
+end")
+
+ (julia--should-indent
+ "if a == a[end-4:end]
+r = 1
+end"
+ "if a == a[end-4:end]
+ r = 1
+end")
+ )
+
(ert-deftest julia--test-symbol-font-locking-at-bol ()
"Symbols get font-locked at beginning or line."
(julia--should-font-lock
diff --git a/julia-mode.el b/julia-mode.el
index 2282bab..287b4c3 100644
--- a/julia-mode.el
+++ b/julia-mode.el
@@ -411,8 +411,7 @@ Do not move back beyond position MIN."
(setq nesting-count
(cond ((julia-at-keyword julia-block-start-keywords)
(+ nesting-count 1))
- ((and (equal (current-word t) "end")
- (not (julia-in-comment)))
+ ((julia-at-keyword '("end"))
(- nesting-count 1))
(t nesting-count))))
(if (> nesting-count 0)
- [nongnu] elpa/julia-mode 0d9a793 287/352: Move LaTeX substitutions to a separate file, clean up generating script., (continued)
- [nongnu] elpa/julia-mode 0d9a793 287/352: Move LaTeX substitutions to a separate file, clean up generating script., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode deda1e2 284/352: Add test, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 69439e2 055/352: Fix Stephan's last name in .mailmap., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 5762e13 133/352: remove * and div for Char, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 40c5e82 185/352: Fix indentation when we're indenting a line that has an open paren after point., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 4f72dfa 246/352: Merge pull request #13 from JuliaLang/keywords_in_comments, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 344e6c2 283/352: Merge pull request #42 from antoine-levitt/math-insert, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 115d4dc 277/352: Regenerate latex auto completion (#45), ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode db84928 299/352: Merge pull request #74 from non-Jedi/emoji, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode d21b83d 316/352: Merge pull request #93 from non-Jedi/julia-mode-latexsubs_feature, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 839726a 336/352: Merge pull request #123 from ronisbr/master,
ELPA Syncer <=
- [nongnu] elpa/julia-mode 2395931 142/352: Since julia-mode.el contains utf-8 chars, mark the file as utf-8., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 5e52d81 188/352: Don't error if the first line of the file is empty., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode b66f8a4 274/352: Insertion of math symbols in julia using auctex's mechanism, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 864e124 311/352: remove newline, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 686bed3 309/352: remove unused lexical args that gave a warning, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 4515765 320/352: add a changelog (#96), ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode bfa54b2 331/352: Minor point about preferring the rx macro for regexs., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 88d7d87 332/352: Merge pull request #121 from JuliaEditorSupport/tp/prefer-rx, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode d91f1d0 324/352: Remove regexp-opt workarounds for Emacs < 24 (#101), ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode d69b095 342/352: Removed require statement for auctex that broke prettify. Fixes #99 (#116), ELPA Syncer, 2021/08/29