[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/julia-mode b82208b 076/352: use font-lock-constant-face fo
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/julia-mode b82208b 076/352: use font-lock-constant-face for symbolic constants |
Date: |
Sun, 29 Aug 2021 11:22:18 -0400 (EDT) |
branch: elpa/julia-mode
commit b82208b4861aa47f710497ac39ccaa5e8e5d3d38
Author: Jeff Bezanson <bezanson@post.harvard.edu>
Commit: Yichao Yu <yyc1992@gmail.com>
use font-lock-constant-face for symbolic constants
also for unquote expressions, closing #164
---
julia-mode.el | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/julia-mode.el b/julia-mode.el
index b5fa878..db34000 100644
--- a/julia-mode.el
+++ b/julia-mode.el
@@ -53,8 +53,11 @@
(defconst julia-char-regex
"\\(\\s(\\|\\s-\\|-\\|[,%=<>\\+*/?&|$!\\^~\\\\;:]\\|^\\)\\('\\(\\([^']*?[^\\\\]\\)\\|\\(\\\\\\\\\\)\\)'\\)")
+(defconst julia-unquote-regex
+ "\\(\\s(\\|\\s-\\|-\\|[,%=<>\\+*/?&|!\\^~\\\\;:]\\|^\\)\\($[a-zA-Z0-9_]+\\)")
+
(defconst julia-font-lock-keywords
- (list
'("\\<\\(true\\|false\\|\\|Uint\\(8\\|16\\|32\\|64\\)\\|Int\\(8\\|16\\|32\\|64\\)\\|Integer\\|Float\\|Float32\\|Float64\\|Complex128\\|Complex64\\|ComplexNum\\|Bool\\|Char\\|Number\\|Scalar\\|Real\\|Int\\|Uint\\|Array\\|DArray\\|AbstractArray\\|AbstractVector\\|AbstractMatrix\\|SubArray\\|StridedArray\\|StridedVector\\|StridedMatrix\\|VecOrMat\\|StridedVecOrMat\\|Range\\|Range1\\|SparseMatrixCSC\\|Tuple\\|NTuple\\|Buffer\\|Size\\|Index\\|Symbol\\|Function\\|Vector\\|Matrix\\|Unio
[...]
+ (list
'("\\<\\(\\|Uint\\(8\\|16\\|32\\|64\\)\\|Int\\(8\\|16\\|32\\|64\\)\\|Integer\\|Float\\|Float32\\|Float64\\|Complex128\\|Complex64\\|ComplexNum\\|Bool\\|Char\\|Number\\|Scalar\\|Real\\|Int\\|Uint\\|Array\\|DArray\\|AbstractArray\\|AbstractVector\\|AbstractMatrix\\|SubArray\\|StridedArray\\|StridedVector\\|StridedMatrix\\|VecOrMat\\|StridedVecOrMat\\|Range\\|Range1\\|SparseMatrixCSC\\|Tuple\\|NTuple\\|Buffer\\|Size\\|Index\\|Symbol\\|Function\\|Vector\\|Matrix\\|Union\\|Type\\|Any\
[...]
font-lock-type-face)
(cons
(concat "\\<\\("
@@ -66,6 +69,8 @@
"module" "import" "export" "const" "let" "bitstype")
"\\|") "\\)\\>")
'font-lock-keyword-face)
+ '("\\<\\(true\\|false\\|C_NULL\\)\\>" . font-lock-constant-face)
+ (list julia-unquote-regex 2 'font-lock-constant-face)
(list julia-char-regex 2 'font-lock-string-face)
;(list julia-string-regex 0 'font-lock-string-face)
))
- [nongnu] elpa/julia-mode cea8e08 039/352: moving dlsym, dlopen, and load out of builtins, (continued)
- [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
- [nongnu] elpa/julia-mode 91b2800 075/352: Color ccall and C_NULL in emacs mode, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode b82208b 076/352: use font-lock-constant-face for symbolic constants,
ELPA Syncer <=
- [nongnu] elpa/julia-mode 419dfd9 090/352: fix to "in" syntax highlighting, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 2843dad 092/352: fix #874, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode db9a18c 102/352: .mailmap: some additions to dedup contributors in gitlog, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 44cd797 116/352: Update mailmap, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 7064885 113/352: update mailmap, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 137455a 119/352: Update mailmap, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode db05511 143/352: Adding autoload cookie for associating .jl files with julia-mode., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode d6a298b 146/352: Removing unused constant., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 1b6b38c 154/352: Don't highlight that that happens to contain a constant., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 45e1650 159/352: Correcting type regex., ELPA Syncer, 2021/08/29