[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/julia-mode 70d6482 160/352: `throw` and `error` are built-
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/julia-mode 70d6482 160/352: `throw` and `error` are built-in functions that we should highlight. |
Date: |
Sun, 29 Aug 2021 11:22:36 -0400 (EDT) |
branch: elpa/julia-mode
commit 70d6482755d5eee480b1ee67ce5acfda1ea9b7a5
Author: Wilfred Hughes <me@wilfred.me.uk>
Commit: Yichao Yu <yyc1992@gmail.com>
`throw` and `error` are built-in functions that we should highlight.
---
julia-mode.el | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/julia-mode.el b/julia-mode.el
index 724b6db..bcfd170 100644
--- a/julia-mode.el
+++ b/julia-mode.el
@@ -131,6 +131,11 @@
"baremodule" "importall" "immutable")
'symbols))
+(defconst julia-builtin-regex
+ (regexp-opt
+ '("error" "throw")
+ 'symbols))
+
(defconst julia-font-lock-keywords
(list
'("\\<\\(\\|Uint\\(8\\|16\\|32\\|64\\|128\\)\\|Int\\(8\\|16\\|32\\|64\\|128\\)\\|BigInt\\|Integer\\|BigFloat\\|FloatingPoint\\|Float16\\|Float32\\|Float64\\|Complex128\\|Complex64\\|ComplexPair\\|Bool\\|Char\\|DataType\\|Number\\|Real\\|Int\\|Uint\\|Array\\|DArray\\|AbstractArray\\|AbstractVector\\|AbstractMatrix\\|AbstractSparseMatrix\\|SubArray\\|StridedArray\\|StridedVector\\|StridedMatrix\\|VecOrMat\\|StridedVecOrMat\\|DenseArray\\|Range\\|OrdinalRange\\|StepRange\\|UnitRange\\|Fl
[...]
@@ -150,6 +155,7 @@
(list julia-type-annotation-regex 1 'font-lock-type-face)
(list julia-type-parameter-regex 1 'font-lock-type-face)
(list julia-subtype-regex 1 'font-lock-type-face)
+ (list julia-builtin-regex 1 'font-lock-builtin-face)
))
(defconst julia-block-start-keywords
- [nongnu] elpa/julia-mode 0583ee3 232/352: String was renamed to AbstractString, replace everywhere, (continued)
- [nongnu] elpa/julia-mode 0583ee3 232/352: String was renamed to AbstractString, replace everywhere, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 4afb7be 229/352: Update mailmap., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode e7c8550 228/352: Bind indent offset to its standard value for tests, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 0df9ca4 240/352: julia-mode: Indentation performance improvements, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 2d860b1 248/352: Merge pull request #18 from JuliaLang/yyc/str-cleanup, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode e4b3428 244/352: Remove test branch in travis, add README, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode ad6a494 301/352: Merge pull request #78 from tpapp/tp/update-latexsubs, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 109747e 132/352: eliminate StoredArray (fix #6212, #987); UniformScaling is no longer an AbstractArray (#5810), ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 84d9a19 147/352: Fix emacs highlighting of symbols that contain keywords., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode fc04731 153/352: Highlight parameter types and subtypes., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 70d6482 160/352: `throw` and `error` are built-in functions that we should highlight.,
ELPA Syncer <=
- [nongnu] elpa/julia-mode ba5ba4c 168/352: Highlight function names when defined with the assignment syntax., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode caab4dc 172/352: Respect the active region when indenting., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode e5f8145 191/352: Use a separate face for Julia macro invocations., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 493fb7f 192/352: note #8947 in julia-mode.el, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 569d41a 206/352: julia-mode.el: stagedfunction, @[no]inline, indented functions, "=:symbol", ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 6f075d7 224/352: Use syntax-propertize-function on Emacs 24., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 96499ff 209/352: Silence Emacs byte-compilation warnings., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode c982fd6 216/352: Changed name of Emacs buffer to *Julia*, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 7c1603c 226/352: Use more common name for indentation setting, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode dd3d682 225/352: Fix Emacs 23 error., ELPA Syncer, 2021/08/29