Skip to content

Commit

Permalink
Update Zig keyword list to Zig 0.12.
Browse files Browse the repository at this point in the history
  • Loading branch information
zufuliu committed May 13, 2024
1 parent 65abf14 commit 4708200
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ Latest development builds (artifacts in Release configuration for each compiler
* SGML and DTD
* Apple Property List
* [YAML Document](https://yaml.org/)
* [Zig](tools/lang/Zig.zig), up to Zig 0.11.
* [Zig](tools/lang/Zig.zig), up to Zig 0.12.
* Many Others
* Toggle fold for specific level, shortcuts: <kbd>Alt</kbd>+<kbd>Number</kbd>
* Toggle fold for current block without scrolling back to the block start line, shortcut: <kbd>Alt</kbd>+<kbd>C</kbd>, or context menu "Toggle Fold"
Expand Down
2 changes: 1 addition & 1 deletion scintilla/lexers/LexZig.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ struct EscapeSequence {
}
};

// https://ziglang.org/documentation/master/std/#A;std:fmt.format
// https://ziglang.org/documentation/master/std/#std.fmt.format
enum class FormatArgument {
None,
Digit,
Expand Down
8 changes: 4 additions & 4 deletions src/EditLexers/stlZig.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@

static KEYWORDLIST Keywords_Zig = {{
//++Autogenerated -- start of section automatically generated
"addrspace align allowzero and anyframe anytype asm async await break catch comptime const continue defer "
"else enum errdefer error export extern false fn for if inline linksection noalias noinline nosuspend null or orelse "
"packed pub resume return struct suspend switch test threadlocal true try undefined union unreachable usingnamespace "
"var volatile while "
"addrspace align allowzero and anyframe anytype asm async await break callconv catch comptime const continue defer "
"else enum errdefer error export extern false fn for if inline linksection noalias noinline nosuspend null "
"opaque or orelse packed pub resume return struct suspend switch test threadlocal true try "
"undefined union unreachable usingnamespace var volatile while "

, // 1 types
"anyerror anyopaque bool f128 f16 f32 f64 f80 i128 i16 i32 i64 i8 isize noreturn type u128 u16 u32 u64 u8 usize void "
Expand Down
8 changes: 4 additions & 4 deletions tools/lang/Zig.zig
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
// 0.11 https://ziglang.org/
// 0.12 https://ziglang.org/
// https://ziglang.org/documentation/master/

//! keywords =======================================================
// https://ziglang.org/documentation/master/#Keyword-Reference
addrspace align allowzero and anyframe anytype asm async await
break
catch comptime const continue
callconv catch comptime const continue
defer
else enum errdefer error export extern
fn for
if inline
linksection
noalias noinline nosuspend
or orelse
opaque or orelse
packed pub
resume return
struct suspend switch
Expand Down Expand Up @@ -42,7 +42,7 @@ anyerror

//! api =======================================================
// https://ziglang.org/documentation/master/std/
// https://ziglang.org/documentation/master/std/#A;std:debug
// https://ziglang.org/documentation/master/std/#std.debug
std.debug {
fn assert(ok: bool) void
fn print(comptime fmt: []const u8, args: anytype) void
Expand Down

0 comments on commit 4708200

Please sign in to comment.