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

[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)
 



reply via email to

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