[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/julia-mode 7f70ddb 095/352: fix to julia-mode for indentin
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/julia-mode 7f70ddb 095/352: fix to julia-mode for indenting argument lists |
Date: |
Sun, 29 Aug 2021 11:22:22 -0400 (EDT) |
branch: elpa/julia-mode
commit 7f70ddb483dff9abaf47e75db3ae98cc63176f55
Author: Jeff Bezanson <jeff.bezanson@gmail.com>
Commit: Yichao Yu <yyc1992@gmail.com>
fix to julia-mode for indenting argument lists
---
julia-mode.el | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/julia-mode.el b/julia-mode.el
index a982fba..ea0bc54 100644
--- a/julia-mode.el
+++ b/julia-mode.el
@@ -137,11 +137,16 @@
(not (julia-in-brackets))
(julia-member (current-word t) kw-list)))
+;; if backward-sexp gives an error, move back 1 char to move over the '('
+(defun julia-safe-backward-sexp ()
+ (if (condition-case nil (backward-sexp) (error t))
+ (error2nil (backward-char))))
+
; get the position of the last open block
(defun julia-last-open-block-pos (min)
(let ((count 0))
(while (not (or (> count 0) (<= (point) min)))
- (backward-sexp)
+ (julia-safe-backward-sexp)
(setq count
(cond ((julia-at-keyword julia-block-start-keywords)
(+ count 1))
- [nongnu] elpa/julia-mode a6f55cb 052/352: .mailmap: someone is a scooby fan., (continued)
- [nongnu] elpa/julia-mode a6f55cb 052/352: .mailmap: someone is a scooby fan., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 8af8e30 073/352: improving regex in last commit, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 560a531 079/352: Update mailmap, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 6cf00ca 080/352: Fix the .mailmap fix; add another alias for Jeff; standard sorting., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 1dca28b 077/352: adding "for i in x" syntax, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 9c6d2b8 081/352: emacs: allow any combination of spaces and newlines after "in" in for loop, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 5c12fc2 084/352: Raise issue and possible fix re emacs indentation., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 0d4a8f6 091/352: fix #852, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 69f50e9 085/352: fix #622, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 856e45d 096/352: long-needed update to type names in julia-mode, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 7f70ddb 095/352: fix to julia-mode for indenting argument lists,
ELPA Syncer <=
- [nongnu] elpa/julia-mode 0f07dca 106/352: add "finally", and other exception improvements, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 7c0cfff 130/352: base StridedArray on the abstract DenseArray. closes #2345, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 3b5f6b0 105/352: make "using Base" implicit, and add baremodule. closes #1522, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 81e46b1 129/352: Update cjh in .mailmap, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 75dc105 124/352: Merge ESS changes to julia-mode.el with backwards compatibility., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode b829e08 131/352: Added DataType to the list of highlighted type words in julia-mode.el., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 9dd8281 134/352: Add support for multiline comments, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode c74045a 125/352: emacs mode: change underscores back to word characters, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 873639b 127/352: emacs mode: make @ a word character again, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 314a731 136/352: more sensible sorting of substitutions; only search backwards as in REPL, and allow a wider range of chars (for things like #6927), ELPA Syncer, 2021/08/29