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

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

[nongnu] elpa/julia-mode 69f50e9 085/352: fix #622


From: ELPA Syncer
Subject: [nongnu] elpa/julia-mode 69f50e9 085/352: fix #622
Date: Sun, 29 Aug 2021 11:22:20 -0400 (EDT)

branch: elpa/julia-mode
commit 69f50e960be4191a39914ac8c45e3ca9f653454e
Author: Jeff Bezanson <bezanson@post.harvard.edu>
Commit: Yichao Yu <yyc1992@gmail.com>

    fix #622
---
 julia-mode.el | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/julia-mode.el b/julia-mode.el
index 83feb69..da8204b 100644
--- a/julia-mode.el
+++ b/julia-mode.el
@@ -95,16 +95,11 @@
     (or (equal item (car lst))
        (member item (cdr lst)))))
 
-; TODO: skip keywords inside strings
+; TODO: skip keywords and # characters inside strings
 
-; fixme? is the line-beginning-position necessary?
-; Currently you are fine with this kind of comment:
-;    # Here's a comment with the word "for" in it
-; but not with this:
-;      x = 5   # Here's another comment with the word "for" in it
 (defun in-comment ()
-  (equal (char-after (+ (line-beginning-position) (current-indentation)))
-        ?#))
+  (member ?# (string-to-list (buffer-substring (line-beginning-position)
+                                              (point)))))
 
 (defun strcount (str chr)
   (let ((i 0)



reply via email to

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