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

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

[nongnu] elpa/julia-mode ff5fc36 202/352: julia-mode.el: allow space or


From: ELPA Syncer
Subject: [nongnu] elpa/julia-mode ff5fc36 202/352: julia-mode.el: allow space or no space after :: and <:
Date: Sun, 29 Aug 2021 11:22:45 -0400 (EDT)

branch: elpa/julia-mode
commit ff5fc36555c303033ff4f08a7c63dd2c0593646e
Author: Rafael Fourquet <fourquet.rafael@gmail.com>
Commit: Yichao Yu <yyc1992@gmail.com>

    julia-mode.el: allow space or no space after :: and <:
---
 julia-mode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/julia-mode.el b/julia-mode.el
index 5f54d68..fa0b3a0 100644
--- a/julia-mode.el
+++ b/julia-mode.el
@@ -164,13 +164,13 @@ This function provides equivalent functionality, but 
makes no efforts to optimis
   (rx symbol-start (or "immutable" "type" "abstract") (1+ space) (group (1+ 
(or word (syntax symbol))))))
 
 (defconst julia-type-annotation-regex
-  (rx "::" (group (1+ (or word (syntax symbol))))))
+  (rx "::" (0+ space) (group (1+ (or word (syntax symbol))))))
 
 ;;(defconst julia-type-parameter-regex
 ;;  (rx symbol-start (1+ (or (or word (syntax symbol)) ?_)) "{" (group (1+ (or 
(or word (syntax symbol)) ?_))) "}"))
 
 (defconst julia-subtype-regex
-  (rx "<:" (1+ space) (group (1+ (or word (syntax symbol)))) (0+ space) (or 
"\n" "{" "end")))
+  (rx "<:" (0+ space) (group (1+ (or word (syntax symbol)))) (0+ space) (or 
"\n" "{" "}" "end")))
 
 (defconst julia-macro-regex
   (rx symbol-start (group "@" (1+ (or word (syntax symbol))))))



reply via email to

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