branch: elpa/julia-mode commit 69f50e960be4191a39914ac8c45e3ca9f653454e Author: Jeff Bezanson <bezan...@post.harvard.edu> Commit: Yichao Yu <yyc1...@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)