[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/zig-mode c298f91 019/104: Updated to latest keywords
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/zig-mode c298f91 019/104: Updated to latest keywords |
Date: |
Sun, 29 Aug 2021 11:36:55 -0400 (EDT) |
branch: elpa/zig-mode
commit c298f910940e602db6d25d80756184b325fd65f6
Author: Andrea Orru <andrea@orru.io>
Commit: Andrea Orru <andrea@orru.io>
Updated to latest keywords
---
zig-mode.el | 60 ++++++++++++++++++++++++++++++++++++------------------------
1 file changed, 36 insertions(+), 24 deletions(-)
diff --git a/zig-mode.el b/zig-mode.el
index b4d6b1d..c1a348e 100644
--- a/zig-mode.el
+++ b/zig-mode.el
@@ -1,6 +1,6 @@
;;; zig-mode.el --- A major mode for the Zig programming language -*-
lexical-binding: t -*-
-;; Version: 0.0.2
+;; Version: 0.0.3
;; Author: Andrea Orru <andreaorru1991@gmail.com>, Andrew Kelley
<superjoe30@gmail.com>
;; Keywords: zig, languages
;; Package-Requires: ((emacs "24"))
@@ -63,41 +63,53 @@
table))
(defconst zig-keywords
- '("const" "var"
- "export" "extern" "pub"
+ '(
+ ;; Storage
+ "const" "var" "extern" "packed" "export" "pub" "noalias" "inline"
+ "comptime" "nakedcc" "stdcallcc" "volatile" "align" "section"
- "noalias"
- "inline" "comptime"
- "nakedcc" "coldcc" "stdcallcc"
- "volatile" "align"
+ ;; Structure
+ "struct" "enum" "union"
- "packed" "struct" "enum" "union"
- "fn" "use" "test"
+ ;; Statement
+ "break" "return" "continue" "asm" "defer" "errdefer" "unreachable"
+ "try" "catch" "async" "await" "suspend" "resume" "cancel"
- "asm" "goto"
- "break" "return" "continue" "defer"
- "unreachable"
+ ;; Conditional
+ "if" "else" "switch" "and" "or"
- "if" "else" "switch"
- "and" "or"
+ ;; Repeat
+ "while" "for"
- "while" "for"))
+ ;; Other keywords
+ "fn" "use" "test"))
(defconst zig-types
- '("void" "noreturn" "type" "error"
+ '(
+ ;; 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"
- "i2" "i3" "i4" "i5" "i6" "i7" "i8" "i16" "i32" "i64" "i128" "isize"
- "u2" "u3" "u4" "u5" "u6" "u7" "u8" "u16" "u32" "u64" "u128" "usize"
+ ;; Floating types
"f32" "f64" "f128"
- "bool"
- "c_short" "c_int" "c_long" "c_longlong"
- "c_ushort" "c_uint" "c_ulong" "c_ulonglong"
- "c_longdouble" "c_void"))
+ ;; C types
+ "c_short" "c_ushort" "c_int" "c_uint" "c_long" "c_ulong"
+ "c_longlong" "c_ulonglong" "c_longdouble" "c_void"
+
+ ;; Other types
+ "bool" "void" "noreturn" "type" "error" "promise"))
+
(defconst zig-constants
- '("null" "undefined" "this"
- "true" "false"))
+ '(
+ ;; Boolean
+ "true" "false"
+
+ ;; Other constants
+ "null" "undefined" "this"))
+
(defvar zig-font-lock-keywords
(append
- [nongnu] elpa/zig-mode 1f4ebf1 035/104: section -> linksection, (continued)
- [nongnu] elpa/zig-mode 1f4ebf1 035/104: section -> linksection, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 3cac32b 040/104: Drop #' since it's redundant, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode ab655a9 043/104: Add Commentary, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 1552e0e 058/104: Merge pull request #20 from mgxm/feat/add_zig_cli_integration, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 9d5b439 052/104: replace stdcallcc and nakedcc with callconv, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 859a4dc 071/104: Use rx macro and add more possibilities for type annotations, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode f28e0fa 067/104: var has been changed to anytype, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 9ca6876 072/104: Quote arguments passed to zig via the compile function, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 87841c7 082/104: fix broken multiline string highlighting, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 0c23862 003/104: Aestethics., ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode c298f91 019/104: Updated to latest keywords,
ELPA Syncer <=
- [nongnu] elpa/zig-mode 4232704 013/104: Rewritten from scratch for better syntax highlighting., ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 87f4f16 038/104: Escape ) and ] to avoding breaking Emacs Lisp syntax table, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode a716bdd 041/104: Require Emacs v24.3 for setq-local, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode ef59edd 042/104: Prefer Homepage to URL, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 77202ac 044/104: update syntax keywords, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode d885809 068/104: Merge pull request #30 from joachimschmidt557/var-anytype, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode a0dc7dc 063/104: Merge pull request #27 from joachimschmidt557/add-nosuspend, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 89385d7 088/104: Make read-only-mode deactivation/activation explicit, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 3e3c0d5 102/104: Fix font-lock of parameters with optional, pointer or array types, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 8e0e610 086/104: Use (read-only-mode) instead of (toggle-read-only), ELPA Syncer, 2021/08/29