branch: elpa/julia-mode
commit 9dcabbcc3e33d6c75ab0512bb18c617b58deb35b
Author: Ronan Arraes Jardim Chagas <[email protected]>
Commit: Ronan Arraes Jardim Chagas <[email protected]>
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)