branch: elpa/julia-mode commit ff5fc36555c303033ff4f08a7c63dd2c0593646e Author: Rafael Fourquet <fourquet.raf...@gmail.com> Commit: Yichao Yu <yyc1...@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))))))