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

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

[nongnu] elpa/julia-mode 06ff69e 027/352: type does not use block syntax


From: ELPA Syncer
Subject: [nongnu] elpa/julia-mode 06ff69e 027/352: type does not use block syntax, fix emacs mode
Date: Sun, 29 Aug 2021 11:22:09 -0400 (EDT)

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

    type does not use block syntax, fix emacs mode
---
 julia-mode.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/julia-mode.el b/julia-mode.el
index 09b26e8..f667320 100644
--- a/julia-mode.el
+++ b/julia-mode.el
@@ -53,7 +53,7 @@
     '("\\\\\\s-*\".*?\"" . font-lock-string-face)))
 
 (defconst julia-block-start-keywords
-  (list "if" "while" "for" "begin" "try" "type" "function" "struct"))
+  (list "if" "while" "for" "begin" "try" "function" "struct"))
 
 (defconst julia-block-other-keywords
   (list "else" "elseif"))
@@ -70,6 +70,7 @@
 ; TODO: skip keywords inside strings and comments
 
 (defun at-keyword (kw-list)
+  ; not a keyword if used as a field name, X.word
   (and (or (= (point) 1)
           (not (equal (char-before (point)) ?.)))
        (member (current-word) kw-list)))



reply via email to

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