[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/julia-mode 7eb9038 161/352: Highlight the function name, n
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/julia-mode 7eb9038 161/352: Highlight the function name, not the module name, in declarations. |
Date: |
Sun, 29 Aug 2021 11:22:36 -0400 (EDT) |
branch: elpa/julia-mode
commit 7eb90389f56c6f1b7da7f929e973b1364d42b48e
Author: Wilfred Hughes <me@wilfred.me.uk>
Commit: Yichao Yu <yyc1992@gmail.com>
Highlight the function name, not the module name, in declarations.
For example, the code:
function Base.getindex{T,S}(x::ArraySplit{T,S,Nothing}, i::Int)
(i >= 1 && i <= x.k) || throw(BoundsError())
copy!(x.buf, 1, x.s, (i-1)*(x.n-x.noverlap) + 1, x.n)
end
---
julia-mode.el | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/julia-mode.el b/julia-mode.el
index bcfd170..b21378c 100644
--- a/julia-mode.el
+++ b/julia-mode.el
@@ -105,7 +105,12 @@
].* \\(in\\)\\(\\s-\\|$\\)+")
(defconst julia-function-regex
- (rx symbol-start "function" (1+ space) (group (1+ (or word ?_ ?!)))))
+ (rx symbol-start "function"
+ (1+ space)
+ ;; Don't highlight module names in function declarations:
+ (* (seq (1+ (or word ?_)) "."))
+ ;; The function name itself
+ (group (1+ (or word ?_ ?!)))))
(defconst julia-type-regex
(rx symbol-start (or "immutable" "type" "abstract") (1+ space) (group (1+
(or word ?_)))))
- [nongnu] elpa/julia-mode 2f7441b 058/352: AbstractArray, AbstractVector, AbstractMatrix highlighting in julia-mode.el, (continued)
- [nongnu] elpa/julia-mode 2f7441b 058/352: AbstractArray, AbstractVector, AbstractMatrix highlighting in julia-mode.el, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 1312fa7 062/352: removing Tensor from list of syntax highlighted types, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode b35dd82 088/352: more | -> for conversion, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode e225b48 098/352: Update mailmap, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 2ee8be9 089/352: fix #828, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 3fe9882 114/352: Add emacs mode usage, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 3913d39 117/352: Add BigInt and BigFloat to julia-mode.el, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 3cb85b4 141/352: Fixing some byte-compilation warnings., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode c47ccdc 150/352: Highlight parent types in type declarations., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode d76f89a 155/352: Preserve point position when indenting., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 7eb9038 161/352: Highlight the function name, not the module name, in declarations.,
ELPA Syncer <=
- [nongnu] elpa/julia-mode 9795a7c 021/352: Mailmap file to normalize commit names and emails., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 116a9f9 013/352: disabling automatic conversion, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 1f9a1a7 014/352: redesign of type system and its syntax:, ELPA Syncer, 2021/08/29
- [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