[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/julia-mode 9d08954 292/352: Update keywords and builtin ty
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/julia-mode 9d08954 292/352: Update keywords and builtin types to Julia 1.0 |
Date: |
Sun, 29 Aug 2021 11:23:04 -0400 (EDT) |
branch: elpa/julia-mode
commit 9d08954da2454281af10528054ba39a0419fbd59
Author: Éric Thiébaut <eric.thiebaut@univ-lyon1.fr>
Commit: Éric Thiébaut <eric.thiebaut@univ-lyon1.fr>
Update keywords and builtin types to Julia 1.0
- Add \prime to the list of word constituent.
- Fix/replace a number of keywords and builtin types for Julia 1.0 syntax.
- Add `Cstring` and `Cwstring` to the list of builtin types.
- Add `undef` to the list of font lock keywords.
---
julia-mode.el | 23 ++++++++++++++---------
1 file changed, 14 insertions(+), 9 deletions(-)
diff --git a/julia-mode.el b/julia-mode.el
index d54953b..7c0916e 100644
--- a/julia-mode.el
+++ b/julia-mode.el
@@ -117,6 +117,8 @@ This function provides equivalent functionality, but makes
no efforts to optimis
(modify-syntax-entry ?< "." table)
(modify-syntax-entry ?> "." table)
(modify-syntax-entry ?% "." table)
+
+ (modify-syntax-entry ?′ "w" table) ; \prime is a word constituent
table)
"Syntax table for `julia-mode'.")
@@ -242,7 +244,7 @@ This function provides equivalent functionality, but makes
no efforts to optimis
(not (any "="))))
(defconst julia-type-regex
- (rx symbol-start (or "immutable" "type" ;; remove after 0.6
+ (rx symbol-start (or ;;"immutable" "type" ;; remove after 0.6
"abstract type" "primitive type" "struct" "mutable
struct")
(1+ space) (group (1+ (or word (syntax symbol))))))
@@ -264,8 +266,9 @@ This function provides equivalent functionality, but makes
no efforts to optimis
"try" "catch" "return" "local" "function" "macro" "ccall"
"finally" "break" "continue" "global" "where"
"module" "using" "import" "export" "const" "let" "do" "in"
- "baremodule" "importall"
- "immutable" "type" "bitstype" "abstract" "typealias" ;; remove after 0.6
+ "baremodule"
+ ;; "importall" ;; deprecated in 0.7
+ ;; "immutable" "type" "bitstype" "abstract" "typealias" ;; removed in 1.0
"abstract type" "primitive type" "struct" "mutable struct")
'symbols))
@@ -281,16 +284,18 @@ This function provides equivalent functionality, but
makes no efforts to optimis
"UInt" "UInt8" "UInt16" "UInt32" "UInt64" "UInt128"
"Int" "Int8" "Int16" "Int32" "Int64" "Int128"
"BigFloat" "AbstractFloat" "Float16" "Float32" "Float64"
- "Complex128" "Complex64"
+ ;;"Complex128" "Complex64" ;; replaced in 1.0
+ "ComplexF32" "ComplexF64"
"Bool"
"Cuchar" "Cshort" "Cushort" "Cint" "Cuint" "Clonglong" "Culonglong"
"Cintmax_t" "Cuintmax_t"
"Cfloat" "Cdouble" "Cptrdiff_t" "Cssize_t" "Csize_t"
- "Cchar" "Clong" "Culong" "Cwchar_t"
+ "Cchar" "Clong" "Culong" "Cwchar_t" "Cvoid"
+ "Cstring" "Cwstring" ;; C strings made of ordinary and wide characters
"Char" "String" "SubString"
"Array" "DArray" "AbstractArray" "AbstractVector" "AbstractMatrix"
"AbstractSparseMatrix" "SubArray" "StridedArray" "StridedVector"
"StridedMatrix" "VecOrMat" "StridedVecOrMat" "DenseArray" "SparseMatrixCSC"
"BitArray"
- "Range" "OrdinalRange" "StepRange" "UnitRange" "FloatRange"
+ "AbstractRange" "OrdinalRange" "StepRange" "UnitRange" "FloatRange"
"Tuple" "NTuple" "Vararg"
- "DataType" "Symbol" "Function" "Vector" "Matrix" "Union" "Type" "Any"
"Complex" "AbstractString" "Ptr" "Void" "Exception" "Task" "Signed" "Unsigned"
"Associative" "Dict" "IO" "IOStream" "Rational" "Regex" "RegexMatch" "Set"
"IntSet" "Expr" "WeakRef" "ObjectIdDict"
+ "DataType" "Symbol" "Function" "Vector" "Matrix" "Union" "Type" "Any"
"Complex" "AbstractString" "Ptr" "Nothing" "Exception" "Task" "Signed"
"Unsigned" "Associative" "Dict" "IO" "IOStream" "Rational" "Regex" "RegexMatch"
"Set" "IntSet" "Expr" "WeakRef" "ObjectIdDict"
"AbstractRNG" "MersenneTwister"
)
'symbols))
@@ -313,7 +318,7 @@ This function provides equivalent functionality, but makes
no efforts to optimis
(cons julia-macro-regex ''julia-macro-face)
(cons
(julia--regexp-opt
- '("true" "false" "C_NULL" "Inf" "NaN" "Inf32" "NaN32" "nothing")
+ '("true" "false" "C_NULL" "Inf" "NaN" "Inf32" "NaN32" "nothing" "undef")
'symbols)
'font-lock-constant-face)
(list julia-unquote-regex 2 'font-lock-constant-face)
@@ -330,7 +335,7 @@ This function provides equivalent functionality, but makes
no efforts to optimis
(defconst julia-block-start-keywords
(list "if" "while" "for" "begin" "try" "function" "let" "macro"
"quote" "do" "module"
- "immutable" "type" ;; remove after 0.6
+ ;; "immutable" "type" ;; remove after 0.6
"abstract type" "primitive type" "struct" "mutable struct"))
;; For keywords that begin a block without additional indentation
- [nongnu] elpa/julia-mode 4f024cb 313/352: make loading "julia-latexsubs" work when using `eval-buffer` (#83), (continued)
- [nongnu] elpa/julia-mode 4f024cb 313/352: make loading "julia-latexsubs" work when using `eval-buffer` (#83), ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 10ce821 310/352: Add MELPA badge, clarify installation., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 088fb0b 314/352: Load latexsub table as a feature, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 66ef2db 317/352: Merge branch 'master' into tp/drop-emacs-23, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode b295e36 345/352: Merge pull request #133 from non-Jedi/triple-quote-cmd, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode e10a730 056/352: FFT of real vectors as well, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 7065601 138/352: julia-mode symbol-table update from #7018, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 5d693ab 349/352: Fix CI using actions. (#160), ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 307b42b 189/352: If the previous line has a trailing =, that should take precedence over blocks., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode c4a75b4 271/352: update short function syntax w.r.t. spaces, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 9d08954 292/352: Update keywords and builtin types to Julia 1.0,
ELPA Syncer <=
- [nongnu] elpa/julia-mode 9edff28 291/352: Merge pull request #68 from nverno/fix-compilation, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 999569b 297/352: Update substitutions to include emoji, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 3adce47 296/352: highlight ∈ in `for var ∈ …` ( fix #71 ), ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 181c919 040/352: adding a full interface to select and FD sets, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 1332b74 262/352: update for changed type keywords in 0.6, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 0f064b7 280/352: Enable color in inferior julia, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode ec01995 285/352: Merge pull request #54 from jamii/patch-1, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 68181e6 293/352: Replace IntSet by BitSet, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode cb6d4bd 267/352: Fix badge URL, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 6a0f756 288/352: Merge pull request #67 from tpapp/tp/latexsubs, ELPA Syncer, 2021/08/29