branch: elpa/julia-mode
commit e51b039729e16ee7b2f9b371c293a119a3699231
Author: Jeff Bezanson <[email protected]>
Commit: Yichao Yu <[email protected]>
fixing a bug in emacs mode with block start at beginning of buffer
---
julia-mode.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/julia-mode.el b/julia-mode.el
index 517e3fa..83a1840 100644
--- a/julia-mode.el
+++ b/julia-mode.el
@@ -105,8 +105,10 @@
(evenp (julia-strcount
(buffer-substring p0 (point)) ?\")))
t
- (progn (backward-char 1)
- (julia-find-comment-open p0)))))
+ (if (= (point) p0)
+ nil
+ (progn (backward-char 1)
+ (julia-find-comment-open p0))))))
(defun julia-in-comment ()
(save-excursion