branch: elpa/zig-mode commit 41fa032b6632ab243d95b75a47450feb8d612828 Author: ventlark <ventl...@gmail.com> Commit: ventlark <ventl...@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)))