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

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

[nongnu] elpa/julia-mode 5c12fc2 084/352: Raise issue and possible fix r


From: ELPA Syncer
Subject: [nongnu] elpa/julia-mode 5c12fc2 084/352: Raise issue and possible fix re emacs indentation.
Date: Sun, 29 Aug 2021 11:22:20 -0400 (EDT)

branch: elpa/julia-mode
commit 5c12fc26b40d8ea12e411a68b0316655d828989e
Author: Tim Holy <tim.holy@gmail.com>
Commit: Yichao Yu <yyc1992@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)))
         ?#))



reply via email to

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