[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/zig-mode 3c432668b5 17/24: fix: No trailing brackets
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/zig-mode 3c432668b5 17/24: fix: No trailing brackets |
Date: |
Wed, 21 Feb 2024 07:01:41 -0500 (EST) |
branch: elpa/zig-mode
commit 3c432668b513da42a59417e252eafcafec086994
Author: JenChieh <jcs090218@gmail.com>
Commit: JenChieh <jcs090218@gmail.com>
fix: No trailing brackets
---
zig-mode.el | 21 +++++++--------------
1 file changed, 7 insertions(+), 14 deletions(-)
diff --git a/zig-mode.el b/zig-mode.el
index 83d6e1fb62..8bb6bc22e6 100644
--- a/zig-mode.el
+++ b/zig-mode.el
@@ -176,8 +176,7 @@ If given a SOURCE, execute the CMD on it."
table))
(defconst zig-keywords
- '(
- ;; Storage
+ '(;; Storage
"const" "var" "extern" "packed" "export" "pub" "noalias" "inline"
"noinline" "comptime" "callconv" "volatile" "allowzero"
"align" "linksection" "threadlocal" "addrspace"
@@ -199,8 +198,7 @@ If given a SOURCE, execute the CMD on it."
"fn" "usingnamespace" "test"))
(defconst zig-types
- '(
- ;; Integer types
+ '(;; Integer types
"i2" "u2" "i3" "u3" "i4" "u4" "i5" "u5" "i6" "u6" "i7" "u7" "i8" "u8"
"i16" "u16" "i29" "u29" "i32" "u32" "i64" "u64" "i128" "u128"
"isize" "usize"
@@ -220,8 +218,7 @@ If given a SOURCE, execute the CMD on it."
"anyopaque"))
(defconst zig-constants
- '(
- ;; Boolean
+ '(;; Boolean
"true" "false"
;; Other constants
@@ -230,7 +227,6 @@ If given a SOURCE, execute the CMD on it."
(defconst zig-electric-indent-chars
'(?\; ?, ?\) ?\] ?}))
-
(defface zig-multiline-string-face
'((t :inherit font-lock-string-face))
"Face for multiline string literals."
@@ -238,8 +234,7 @@ If given a SOURCE, execute the CMD on it."
(defvar zig-font-lock-keywords
(append
- `(
- ;; Builtins (prefixed with @)
+ `(;; Builtins (prefixed with @)
(,(concat "@" zig-re-identifier) . font-lock-builtin-face)
;; Keywords, constants and types
@@ -249,8 +244,7 @@ If given a SOURCE, execute the CMD on it."
;; Type annotations (both variable and type)
(,zig-re-type-annotation 1 font-lock-variable-name-face)
- (,zig-re-type-annotation 2 font-lock-type-face)
- )
+ (,zig-re-type-annotation 2 font-lock-type-face))
;; Definitions
(mapcar (lambda (x)
@@ -473,14 +467,13 @@ This is written mainly to be used as
`end-of-defun-function' for Zig."
'("enum" "struct" "union"))
`(("Fn" ,(zig-re-definition "fn") 1))))
-;;; Guarantee filesystem unix line endings
(defun zig-file-coding-system ()
+ "Guarantee filesystem unix line endings."
(with-current-buffer (current-buffer)
(if (buffer-file-name)
(if (string-match "\\.d?zig\\'" buffer-file-name)
(setq buffer-file-coding-system 'utf-8-unix)
- nil))
- ))
+ nil))))
(add-hook 'zig-mode-hook 'zig-file-coding-system)
- [nongnu] elpa/zig-mode 18bb915842 10/24: chore: Add myself as maintainer, (continued)
- [nongnu] elpa/zig-mode 18bb915842 10/24: chore: Add myself as maintainer, ELPA Syncer, 2024/02/21
- [nongnu] elpa/zig-mode b808ab1748 05/24: test snapshot, ELPA Syncer, 2024/02/21
- [nongnu] elpa/zig-mode 50d84aca4c 06/24: ci: Cancel workflow if head changes, ELPA Syncer, 2024/02/21
- [nongnu] elpa/zig-mode 2d3e9986c1 13/24: ci: Install Eask, ELPA Syncer, 2024/02/21
- [nongnu] elpa/zig-mode df4ecc9783 15/24: ci: Resolve CI warnings, ELPA Syncer, 2024/02/21
- [nongnu] elpa/zig-mode 6a0fa784b6 19/24: test: Move test to test dir, ELPA Syncer, 2024/02/21
- [nongnu] elpa/zig-mode 7f7a67de90 18/24: fix: Symbol as function name, ELPA Syncer, 2024/02/21
- [nongnu] elpa/zig-mode 66a88bffb1 21/24: ci: Test ert, ELPA Syncer, 2024/02/21
- [nongnu] elpa/zig-mode c6b89c2cfe 14/24: Add dep bot, ELPA Syncer, 2024/02/21
- [nongnu] elpa/zig-mode 6979d8d7ce 20/24: chore: Required version is now 26.1, ELPA Syncer, 2024/02/21
- [nongnu] elpa/zig-mode 3c432668b5 17/24: fix: No trailing brackets,
ELPA Syncer <=
- [nongnu] elpa/zig-mode 2f5084f176 16/24: fix: Mix used of spaces and tabs, ELPA Syncer, 2024/02/21
- [nongnu] elpa/zig-mode 9ce2009710 24/24: Merge pull request #87 from theothornhill/master, ELPA Syncer, 2024/02/21
- [nongnu] elpa/zig-mode 5d58b22dcb 23/24: Merge branch 'master' into master, ELPA Syncer, 2024/02/21
- [nongnu] elpa/zig-mode 324ee9d07d 22/24: docs: Update the tests instruction, ELPA Syncer, 2024/02/21