branch: elpa/zig-mode commit 28427978360525ba7d82f3ef2f740780dec08d20 Author: Andrea Orru <andreaorru1...@gmail.com> Commit: Andrea Orru <andreaorru1...@gmail.com>
Fix builtins. Reorder tables. --- zig-mode.el | 63 +++++++++++++++++++++++++------------------------------------ 1 file changed, 26 insertions(+), 37 deletions(-) diff --git a/zig-mode.el b/zig-mode.el index bfd1726..6d214ea 100644 --- a/zig-mode.el +++ b/zig-mode.el @@ -12,56 +12,45 @@ ;;; Code: (defvar zig-mode-builtins '("@addWithOverflow" - "@alignOf" - "@alloca" - "@cDefine" - "@cImport" - "@cInclude" - "@cUndef" + "@mulWithOverflow" + "@shlWithOverflow" + "@subWithOverflow" + "@divExact" + + "@cDefine" "@cImport" "@cInclude" "@cUndef" + "@setGlobalAlign" "@setGlobalLinkage" "@setGlobalSection" + "@setDebugSafety" + + "@alignOf" "@sizeOf" + "@typeName" "@typeOf" + "@intType" "@isFloat" "@isInteger" + "@maxValue" "@minValue" + "@memberCount" "@canImplicitCast" + + "@alloca" + "@memcpy" "@memset" + + "@compileError" "@compileLog" "@compileVar" + "@errorName" + + "@import" "@embedFile" "@clz" "@cmpxchg" - "@compileError" - "@compileLog" - "@compileVar" "@ctz" - "@divExact" - "@embedFile" - "@errorName" "@fence" "@generatedCode" - "@import" - "@intType" - "@isFloat" - "@isInteger" - "@maxValue" - "@memberCount" - "@minValue" - "@mulWithOverflow" - "@setDebugSafety" - "@setGlobalAlign" - "@setGlobalLinkage" - "@setGlobalSection" - "@shlWithOverflow" - "@sizeOf" - "@subWithOverflow" "@truncate" - "@typeName" - "@typeOf" "@unreachable")) (defvar zig-mode-keywords '("asm" - "coldcc" - "inline" - "nakedcc" "noalias" "unreachable" "use" - "export" - "extern" - "pub" + "coldcc" "nakedcc" + "export" "extern" "inline" "pub" "fn" "enum" "struct" "union" @@ -93,16 +82,16 @@ "c_int" "c_long" "c_long_double" "c_longlong" "c_short" "c_uint" "c_ulong" "c_ulonglong" "c_ushort" - "f32" "f64" "i8" "i16" "i32" "i64" "isize" "u8" "u16" "u32" "u64" "usize" + "f32" "f64" "noreturn" "void")) (defvar zig-mode-font-lock-keywords `((,(regexp-opt zig-mode-keywords 'symbols) . font-lock-keyword-face) - (,(regexp-opt zig-mode-builtins 'symbols) . font-lock-builtin-face) + (,(regexp-opt zig-mode-builtins ) . font-lock-builtin-face) (,(regexp-opt zig-mode-constants 'symbols) . font-lock-constant-face) (,(regexp-opt zig-mode-types 'symbols) . font-lock-type-face)))