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

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

[nongnu] elpa/julia-mode 116a9f9 013/352: disabling automatic conversion


From: ELPA Syncer
Subject: [nongnu] elpa/julia-mode 116a9f9 013/352: disabling automatic conversion
Date: Sun, 29 Aug 2021 11:22:06 -0400 (EDT)

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

    disabling automatic conversion
    adding linked List type, and Expr type
    adding simple macro system
    adding more integer operators, demonstrating use of macros
    some fixes to printing
    a fix to value-or-null in closure conversion
---
 julia-mode.el | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/julia-mode.el b/julia-mode.el
index 43365a7..48eb090 100644
--- a/julia-mode.el
+++ b/julia-mode.el
@@ -9,8 +9,6 @@
 (defvar julia-mode-syntax-table
   (let ((table (make-syntax-table)))
     (modify-syntax-entry ?_ "w" table)   ; underscores in words
-    (modify-syntax-entry ?? "w" table)   ; ? in words
-    (modify-syntax-entry ?\\ "w" table)  ; \ is a symbol char outside quotes
     (modify-syntax-entry ?# "<" table)   ; #  single-line comment start
     (modify-syntax-entry ?\n ">" table)  ; \n single-line comment end
     (modify-syntax-entry ?\{ "(} " table)
@@ -19,6 +17,8 @@
     (modify-syntax-entry ?\] ")[ " table)
     (modify-syntax-entry ?\( "() " table)
     (modify-syntax-entry ?\) ")( " table)
+    (modify-syntax-entry ?\\ "." table)  ; \ is an operator outside quotes
+    (modify-syntax-entry ?? "." table)
     (modify-syntax-entry ?$ "." table)
     (modify-syntax-entry ?& "." table)
     (modify-syntax-entry ?* "." table)
@@ -46,13 +46,15 @@
           'identity
           '("if" "else" "elseif" "while" "for" "begin" "end" "block"
             "try" "catch" "return" "local" "type" "function" "new" "quote"
-           "typealias" "break" "continue" "conversion" "global")
+           "typealias" "break" "continue" "conversion" "global" "macro"
+           "module" "import" "export" "const")
           "\\|") "\\)\\>")
      'font-lock-keyword-face)
     '("\\\\\\s-*\".*?\"" . font-lock-string-face)))
 
 (defconst julia-block-start-keywords
-  (list "if" "while" "for" "begin" "try" "type" "function" "conversion"))
+  (list "if" "while" "for" "begin" "try" "type" "function" "conversion"
+       "macro"))
 
 (defconst julia-block-other-keywords
   (list "else" "elseif"))



reply via email to

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