[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/julia-mode 0d4a8f6 091/352: fix #852
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/julia-mode 0d4a8f6 091/352: fix #852 |
Date: |
Sun, 29 Aug 2021 11:22:21 -0400 (EDT) |
branch: elpa/julia-mode
commit 0d4a8f6ad60ca6384e284e2b956b0e120443f8ff
Author: Jeff Bezanson <jeff.bezanson@gmail.com>
Commit: Yichao Yu <yyc1992@gmail.com>
fix #852
apparently "block" isn't in some emacsen
---
julia-mode.el | 24 +++++++++++++-----------
1 file changed, 13 insertions(+), 11 deletions(-)
diff --git a/julia-mode.el b/julia-mode.el
index 9edbd7d..1d07d06 100644
--- a/julia-mode.el
+++ b/julia-mode.el
@@ -95,19 +95,21 @@
(or (equal item (car lst))
(member item (cdr lst)))))
+(defun find-comment-open (p0)
+ (if (< (point) p0)
+ nil
+ (if (and (equal (char-after (point)) ?#)
+ (evenp (strcount
+ (buffer-substring p0 (point)) ?\")))
+ t
+ (progn (backward-char 1)
+ (find-comment-open p0)))))
+
(defun in-comment ()
(save-excursion
- (block incomment
- (end-of-line)
- (backward-char 1)
- (let ((p0 (line-beginning-position)))
- (while (>= (point) p0)
- (if (and (equal (char-after (point)) ?#)
- (evenp (strcount
- (buffer-substring p0 (point)) ?\")))
- (return-from incomment t))
- (backward-char 1))
- nil))))
+ (end-of-line)
+ (backward-char 1)
+ (find-comment-open (line-beginning-position))))
(defun strcount (str chr)
(let ((i 0)
- [nongnu] elpa/julia-mode 2316ad7 093/352: implement "do" block syntax. closes #441, (continued)
- [nongnu] elpa/julia-mode 2316ad7 093/352: implement "do" block syntax. closes #441, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode b58ccd0 104/352: Begin work on sparse unary operators., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode e7ebf35 031/352: adding let syntax:, ELPA Syncer, 2021/08/29
- [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 <=
- [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, 2021/08/29
- [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