[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/zig-mode b7d9613 091/104: Account for braces inside of fun
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/zig-mode b7d9613 091/104: Account for braces inside of function parameters |
Date: |
Sun, 29 Aug 2021 11:37:09 -0400 (EDT) |
branch: elpa/zig-mode
commit b7d96132b87adeac202abfa04c055707df3752eb
Author: ventlark <ventlark@gmail.com>
Commit: ventlark <ventlark@gmail.com>
Account for braces inside of function parameters
---
zig-mode.el | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/zig-mode.el b/zig-mode.el
index cc192f18..ce0ca2e 100644
--- a/zig-mode.el
+++ b/zig-mode.el
@@ -309,6 +309,12 @@ 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)
+ (progn
+ (backward-char)
+ (forward-sexp)))
+
;; Find the opening brace
(if (re-search-forward "[{]" nil t)
(progn
- [nongnu] elpa/zig-mode 4542a5d 036/104: add imenu support, (continued)
- [nongnu] elpa/zig-mode 4542a5d 036/104: add imenu support, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 604484c 039/104: M-x untabify, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 67ad48b 045/104: fix multiline string properties rules regex, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode ab46e22 048/104: add some zig cli build commands, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode acebfb1 057/104: Add anyframe; remove promise, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode fc7fde3 056/104: Merge pull request #23 from joachimschmidt557/master, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode ad844c3 062/104: noasync -> nosuspend, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 2c45c45 059/104: Merge pull request #24 from joachimschmidt557/add-anyframe, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 22187f4 076/104: Merge pull request #32 from joachimschmidt557/remove-this, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 8721255 079/104: Merge pull request #34 from jdpage/shell-quoting, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode b7d9613 091/104: Account for braces inside of function parameters,
ELPA Syncer <=
- [nongnu] elpa/zig-mode 41fa032 092/104: Account for paren-wrapped return type, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode bab3143 094/104: Add `zig-test-optimization-mode` and `zig-run-optimization-mode`, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 0b9cddb 098/104: Exclude all except fn and test blocks, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 8ad244b 101/104: Merge pull request #54 from ve-nt/feature/begin-end-defun, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 909e263 096/104: Merge pull request #53 from bbuccianti/master, ELPA Syncer, 2021/08/29