[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/julia-mode af5eb63 273/352: short function syntax: support
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/julia-mode af5eb63 273/352: short function syntax: support return type declaration |
Date: |
Sun, 29 Aug 2021 11:23:00 -0400 (EDT) |
branch: elpa/julia-mode
commit af5eb639d68640ea5eec51d4d89d1fdab5b4b113
Author: Rafael Fourquet <fourquet.rafael@gmail.com>
Commit: Rafael Fourquet <fourquet.rafael@gmail.com>
short function syntax: support return type declaration
---
julia-mode-tests.el | 4 +++-
julia-mode.el | 2 ++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/julia-mode-tests.el b/julia-mode-tests.el
index f2320a3..1965fc8 100644
--- a/julia-mode-tests.el
+++ b/julia-mode-tests.el
@@ -425,7 +425,9 @@ end")
(julia--should-font-lock
"f(x) where T = 1" 1 'font-lock-function-name-face)
(julia--should-font-lock
- "f(x) where{T} = 1" 1 'font-lock-function-name-face))
+ "f(x) where{T} = 1" 1 'font-lock-function-name-face)
+ (dolist (def '("f(x)::T = 1" "f(x) :: T = 1" "f(x::X)::T where X = x"))
+ (julia--should-font-lock def 1 'font-lock-function-name-face)))
(ert-deftest julia--test-where-keyword-font-locking ()
(julia--should-font-lock
diff --git a/julia-mode.el b/julia-mode.el
index 737e44a..daf42d7 100644
--- a/julia-mode.el
+++ b/julia-mode.el
@@ -235,6 +235,8 @@ This function provides equivalent functionality, but makes
no efforts to optimis
(not (any "(" ")"))))
")"
(* space)
+ (? "::" (* space) (1+ (not (any space))))
+ (* space)
(* (seq "where" (or "{" (+ space)) (+ (not (any "=")))))
"="
(not (any "="))))
- [nongnu] elpa/julia-mode 6b7e956 321/352: Fix for derived parent mode (#66), (continued)
- [nongnu] elpa/julia-mode 6b7e956 321/352: Fix for derived parent mode (#66), ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 9dcabbc 334/352: Simplify the logic to find the end of last block, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 796ddfd 338/352: Apply proper syntax to triple-quoted cmds, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 505d71b 339/352: Add all problemmatic strings from issue #15 to tests, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode b800403 326/352: Font lock tweaks (#102), ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 8bfc709 325/352: bump version for release, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode a31868d 340/352: font-lock ccall as a builtin, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode a4eeb6c 343/352: Merge pull request #134 from non-Jedi/font-lock-builtin-face, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode a1ba9a0 352/352: add logo, README tweaks, add section on testing (#163), ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode dc17943 351/352: Indent imports from submodule correctly (#154), ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode af5eb63 273/352: short function syntax: support return type declaration,
ELPA Syncer <=
- [nongnu] elpa/julia-mode 1eacdc6 298/352: Create FUNDING.yml, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 023df24 322/352: add latest PR to changelog, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 140369e 337/352: Simplify char-regex, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 10b0eff 286/352: beginning/end of defun functions, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 6408b96 306/352: Transition to cl-lib, drop support for Emacs 23., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 4f024cb 313/352: make loading "julia-latexsubs" work when using `eval-buffer` (#83), ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 10ce821 310/352: Add MELPA badge, clarify installation., ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 088fb0b 314/352: Load latexsub table as a feature, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode 66ef2db 317/352: Merge branch 'master' into tp/drop-emacs-23, ELPA Syncer, 2021/08/29
- [nongnu] elpa/julia-mode b295e36 345/352: Merge pull request #133 from non-Jedi/triple-quote-cmd, ELPA Syncer, 2021/08/29