[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/julia-mode 389a942 038/352: adding macros. to define a mac
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/julia-mode 389a942 038/352: adding macros. to define a macro: |
Date: |
Sun, 29 Aug 2021 11:22:11 -0400 (EDT) |
branch: elpa/julia-mode
commit 389a942b5b8a6da22f27b02b72f1eb6d4fd07761
Author: Jeff Bezanson <bezanson@post.harvard.edu>
Commit: Yichao Yu <yyc1992@gmail.com>
adding macros. to define a macro:
macro foo(arg)
...
end
to use a macro:
@foo arg
for now, macros take just 1 argument. the macro is called on the
literal syntax of its argument, and its result is used in place of the
macro call.
while i'm at it, improving the internal interface to eval, and making
the front end a bit more efficient (it no longer has to wrap
everything in a thunk)
making `x` parse to @cmd "x", but with different escaping behavior as
discussed.
---
julia-mode.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/julia-mode.el b/julia-mode.el
index f3ba1a3..831fd61 100644
--- a/julia-mode.el
+++ b/julia-mode.el
@@ -9,6 +9,7 @@
(defvar julia-mode-syntax-table
(let ((table (make-syntax-table)))
(modify-syntax-entry ?_ "w" table) ; underscores in words
+ (modify-syntax-entry ?@ "w" table)
(modify-syntax-entry ?# "<" table) ; # single-line comment start
(modify-syntax-entry ?\n ">" table) ; \n single-line comment end
(modify-syntax-entry ?\{ "(} " table)
@@ -47,7 +48,7 @@
'identity
'("if" "else" "elseif" "while" "for" "begin" "end" "quote"
"try" "catch" "return" "local" "type" "function" "macro"
- "typealias" "break" "continue" "struct" "global"
+ "typealias" "break" "continue" "struct" "global" "@\\w+"
"module" "import" "export" "const" "let" "bitstype")
"\\|") "\\)\\>")
'font-lock-keyword-face)
- [nongnu] elpa/julia-mode de2a2a3 016/352: Rename: Double => Float64, double => float64., (continued)
- [nongnu] elpa/julia-mode de2a2a3 016/352: Rename: Double => Float64, double => float64., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode ecc3f0c 017/352: parsing chains of * or + into single calls, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 16969b1 018/352: removing special syntax of quote(), ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 8603d3b 019/352: making array dims an ntuple, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 52efd2a 020/352: small tweaks to viral's script and its build process, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 232e758 022/352: starting some basic pretty-printing of Exprs, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 4c34abc 024/352: preserving the exactness of integer ranges in length(Range), ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 9ff2472 029/352: git seems to have changed the way .mailmap works., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 0df0732 036/352: making Scalar disjoint from Tensor, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 27e392f 035/352: converting alloc.c for new GC, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 389a942 038/352: adding macros. to define a macro:,
ELPA Syncer <=
- [nongnu] elpa/julia-mode ef8a44c 037/352: replacing ` with : for symbol and expression quoting, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode cea8e08 039/352: moving dlsym, dlopen, and load out of builtins, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 1642a6e 041/352: keyword change: renaming type to abstract and struct to type, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 946222c 042/352: Trying multiplication of darrays, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 833dae5 049/352: Update mailmap., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 38ad5c0 060/352: Mailmap entry for Stephan., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 27ecdc5 047/352: fixing julia-mode; I used (do ...) and apparently not all emacs installs, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 42a61fc 057/352: Add Giuseppe to the .mailmap file., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 9553095 059/352: New entry in .mailmap for Jeff., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode a04be67 071/352: of course, all my tree compressing broke file/line metadata. fix, and make the info easier to access too., ELPA Syncer, 2021/08/29