Skip to content

Commit

Permalink
julia-mode.el: allow space or no space after :: and <:
Browse files Browse the repository at this point in the history
  • Loading branch information
rfourquet committed Dec 10, 2014
1 parent 0d29ddb commit 8d3d2f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/julia-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -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))))))
Expand Down

0 comments on commit 8d3d2f7

Please sign in to comment.