emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/julia-mode 9dcabbc 334/352: Simplify the logic to find the


From: ELPA Syncer
Subject: [nongnu] elpa/julia-mode 9dcabbc 334/352: Simplify the logic to find the end of last block
Date: Sun, 29 Aug 2021 11:23:13 -0400 (EDT)

branch: elpa/julia-mode
commit 9dcabbcc3e33d6c75ab0512bb18c617b58deb35b
Author: Ronan Arraes Jardim Chagas <ronisbr@gmail.com>
Commit: Ronan Arraes Jardim Chagas <ronisbr@gmail.com>

    Simplify the logic to find the end of last block
---
 julia-mode.el | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/julia-mode.el b/julia-mode.el
index d9bb6c3..287b4c3 100644
--- a/julia-mode.el
+++ b/julia-mode.el
@@ -411,10 +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))
-                          ;; Do not consider the symbol `:end` a block ending.
-                          (not (equal (char-before (point)) ?:)))
+                    ((julia-at-keyword '("end"))
                      (- nesting-count 1))
                     (t nesting-count))))
       (if (> nesting-count 0)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]