branch: elpa/julia-mode commit 5c12fc26b40d8ea12e411a68b0316655d828989e Author: Tim Holy <tim.h...@gmail.com> Commit: Yichao Yu <yyc1...@gmail.com>
Raise issue and possible fix re emacs indentation. This does not fix a bug, but it highlights where I think it occurs and suggests a possible fix for it. I'm not an elisp wizard, so I decided that discretion was the better part of valor. --- julia-mode.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/julia-mode.el b/julia-mode.el index d352a69..83feb69 100644 --- a/julia-mode.el +++ b/julia-mode.el @@ -97,6 +97,11 @@ ; TODO: skip keywords 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))) ?#))