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

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

[nongnu] elpa/zig-mode 41fa032 092/104: Account for paren-wrapped return


From: ELPA Syncer
Subject: [nongnu] elpa/zig-mode 41fa032 092/104: Account for paren-wrapped return type
Date: Sun, 29 Aug 2021 11:37:09 -0400 (EDT)

branch: elpa/zig-mode
commit 41fa032b6632ab243d95b75a47450feb8d612828
Author: ventlark <ventlark@gmail.com>
Commit: ventlark <ventlark@gmail.com>

    Account for paren-wrapped return type
---
 zig-mode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/zig-mode.el b/zig-mode.el
index ce0ca2e..e6f386c 100644
--- a/zig-mode.el
+++ b/zig-mode.el
@@ -309,8 +309,8 @@ at the beginning of the defun body.
 
 This is written mainly to be used as `end-of-defun-function' for Zig."
   (interactive)
-  ;; Jump over the function parameters, if they exist.
-  (if (re-search-forward "(" (point-at-eol) t)
+  ;; Jump over the function parameters and paren-wrapped return, if they exist.
+  (while (re-search-forward "(" (point-at-eol) t)
       (progn
         (backward-char)
         (forward-sexp)))



reply via email to

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