branch: elpa/julia-mode
commit c47ccdcb188b32f9a69da34d0e6e1ee28e3726bd
Author: Wilfred Hughes <m...@wilfred.me.uk>
Commit: Yichao Yu <yyc1...@gmail.com>

    Highlight parent types in type declarations.
---
 julia-mode.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/julia-mode.el b/julia-mode.el
index 04735ba..6a0b9b7 100644
--- a/julia-mode.el
+++ b/julia-mode.el
@@ -88,6 +88,9 @@
 (defconst julia-type-annotation-regex
   (rx "::" (group (1+ (or word ?_)))))
 
+(defconst julia-subtype-regex
+  (rx "<:" (1+ space) (group (1+ (or word ?_)))))
+
 (defconst julia-macro-regex
   "@\\w+")
 
@@ -116,6 +119,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-subtype-regex 1 'font-lock-type-face)
 ))
 
 (defconst julia-block-start-keywords

Reply via email to