[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/zig-mode 64994f1 053/104: Merge pull request #17 from xuch
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/zig-mode 64994f1 053/104: Merge pull request #17 from xuchunyang/master |
Date: |
Sun, 29 Aug 2021 11:37:01 -0400 (EDT) |
branch: elpa/zig-mode
commit 64994f1ac26f6f4ae92881b93d1c75a29f8bedee
Merge: 77202ac ab655a9
Author: Andrea Orru <andrea@orru.io>
Commit: GitHub <noreply@github.com>
Merge pull request #17 from xuchunyang/master
Misc code style fixes
---
zig-mode.el | 35 +++++++++++++++++++----------------
1 file changed, 19 insertions(+), 16 deletions(-)
diff --git a/zig-mode.el b/zig-mode.el
index e2932cd..6e829a5 100644
--- a/zig-mode.el
+++ b/zig-mode.el
@@ -3,8 +3,8 @@
;; Version: 0.0.8
;; Author: Andrea Orru <andreaorru1991@gmail.com>, Andrew Kelley
<superjoe30@gmail.com>
;; Keywords: zig, languages
-;; Package-Requires: ((emacs "24"))
-;; URL: https://github.com/zig-lang/zig-mode
+;; Package-Requires: ((emacs "24.3"))
+;; Homepage: https://github.com/zig-lang/zig-mode
;; This file is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
@@ -20,7 +20,10 @@
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
;;; Commentary:
-;;
+
+;; A major mode for the Zig programming languages.
+
+;; See documentation on https://github.com/zig-lang/zig-mode
;;; Code:
@@ -112,7 +115,7 @@
"null" "undefined" "this"))
(defconst zig-electric-indent-chars
- '( ?\; ?, ?) ?] ?} ))
+ '(?\; ?, ?\) ?\] ?}))
(defgroup zig-mode nil
"Support for Zig code."
@@ -147,9 +150,9 @@
)
;; Definitions
- (mapcar #'(lambda (x)
- (list (zig-re-definition (car x))
- 1 (cdr x)))
+ (mapcar (lambda (x)
+ (list (zig-re-definition (car x))
+ 1 (cdr x)))
'(("const" . font-lock-variable-name-face)
("var" . font-lock-variable-name-face)
("fn" . font-lock-function-name-face)))))
@@ -267,8 +270,8 @@
;; Multiline strings
("\\(\\\\\\)\\\\"
(1 (prog1 "|"
- (goto-char (match-end 0))
- (zig-syntax-propertize-to-newline-if-in-multiline-str end)))))
+ (goto-char (match-end 0))
+ (zig-syntax-propertize-to-newline-if-in-multiline-str end)))))
(point) end))
(defun zig-mode-syntactic-face-function (state)
@@ -288,15 +291,15 @@
(defun zig-re-structure-def-imenu (stype)
"Construct a regular expression for strucutres definitions of type STYPE."
(concat (zig-re-word "const") "[[:space:]]+"
- (zig-re-grab zig-re-identifier)
- ".*"
- (zig-re-word stype)))
+ (zig-re-grab zig-re-identifier)
+ ".*"
+ (zig-re-word stype)))
(defvar zig-imenu-generic-expression
- (append (mapcar #'(lambda (x)
- (list (capitalize x)
(zig-re-structure-def-imenu x) 1))
- '("enum" "struct" "union"))
- `(("Fn" ,(zig-re-definition "fn") 1))))
+ (append (mapcar (lambda (x)
+ (list (capitalize x) (zig-re-structure-def-imenu x) 1))
+ '("enum" "struct" "union"))
+ `(("Fn" ,(zig-re-definition "fn") 1))))
;;;###autoload
(define-derived-mode zig-mode prog-mode "Zig"
- [nongnu] elpa/zig-mode 52e3e20 004/104: README., (continued)
- [nongnu] elpa/zig-mode 52e3e20 004/104: README., ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode bc1bed3 009/104: Fix package, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 1d26390 015/104: Merge pull request #3 from purcell/patch-1, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 0ed57d8 014/104: Minor fixes, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode e659a58 024/104: Set comment-start and comment-end (for issue #5) (#7), ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode b773127 027/104: Initial implementation of indent-line-function, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 9c200f4 032/104: Add -y flag to apt-get command in AppVeyor install script, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode e0bccb1 047/104: add zig-format-buffer command, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 2acd88f 049/104: add zig-mode-map with default keybinding, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 0a150f2 054/104: Merge pull request #19 from mgxm/fix_multiline_string, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 64994f1 053/104: Merge pull request #17 from xuchunyang/master,
ELPA Syncer <=
- [nongnu] elpa/zig-mode 9609cc3 055/104: Merge pull request #21 from SerialDev/master, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode fab1924 066/104: fix test regression, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode f9e5c57 065/104: Merge pull request #28 from justjosias/pre-doc-comment, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 2426668 070/104: Remove `this` constant, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode e110c29 073/104: Merge pull request #29 from joachimschmidt557/test-regression, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 6d78a6e 074/104: Fix appveyor.yml, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 9b44e04 075/104: Merge pull request #38 from mdsteele/appveyor, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 6f10653 085/104: Merge pull request #41 from dedifferentiator/master, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 085bd30 081/104: Revert "Use rx macro and add more possibilities for type annotations", ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode ffaffb7 077/104: Merge pull request #31 from joachimschmidt557/hide-zig-fmt-window, ELPA Syncer, 2021/08/29