emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/julia-mode b6b52a4 162/352: tweaks to emacs syntax highlig


From: ELPA Syncer
Subject: [nongnu] elpa/julia-mode b6b52a4 162/352: tweaks to emacs syntax highlighting
Date: Sun, 29 Aug 2021 11:22:36 -0400 (EDT)

branch: elpa/julia-mode
commit b6b52a479b14727bfb59467766db7967653f072e
Author: Jeff Bezanson <jeff.bezanson@gmail.com>
Commit: Yichao Yu <yyc1992@gmail.com>

    tweaks to emacs syntax highlighting
    
    - the type-parameter case only affected single type parameters. not
      worth doing.
    - coloring only `error` and `throw` differently is too arbitrary.
---
 julia-mode.el | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/julia-mode.el b/julia-mode.el
index b21378c..ca56595 100644
--- a/julia-mode.el
+++ b/julia-mode.el
@@ -118,8 +118,8 @@
 (defconst julia-type-annotation-regex
   (rx "::" (group (1+ (or word ?_)))))
 
-(defconst julia-type-parameter-regex
-  (rx symbol-start (1+ (or word ?_)) "{" (group (1+ (or word ?_))) "}"))
+;;(defconst julia-type-parameter-regex
+;;  (rx symbol-start (1+ (or word ?_)) "{" (group (1+ (or word ?_))) "}"))
 
 (defconst julia-subtype-regex
   (rx "<:" (1+ space) (group (1+ (or word ?_))) (0+ space) (or "\n" "{" 
"end")))
@@ -138,7 +138,8 @@
 
 (defconst julia-builtin-regex
   (regexp-opt
-   '("error" "throw")
+   ;;'("error" "throw")
+   '()
    'symbols))
 
 (defconst julia-font-lock-keywords
@@ -158,7 +159,7 @@
     (list julia-function-regex 1 'font-lock-function-name-face)
     (list julia-type-regex 1 'font-lock-type-face)
     (list julia-type-annotation-regex 1 'font-lock-type-face)
-    (list julia-type-parameter-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)
 ))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]