@@ -45,8 +45,9 @@ lex:set_word_list(lexer.KEYWORD, {
45
45
-- Defering code blocks.
46
46
' defer' , ' errdefer' ,
47
47
-- Functions and structures related keywords.
48
- ' align' , ' allowzero' , ' noalias' , ' noinline' , ' callconv' , ' packed' , ' linksection' , ' unreachable' ,
49
- ' test' , ' asm' , ' volatile' ,
48
+ ' align' , ' allowzero' , ' noalias' , ' noinline' ,
49
+ ' callconv' , ' packed' , ' linksection' , ' unreachable' , ' test' , ' asm' ,
50
+ ' volatile' ,
50
51
-- Parallelism and concurrency related keywords.
51
52
' async' , ' await' , ' noasync' , ' suspend' , ' nosuspend' , ' resume' , ' threadlocalanyframe' ,
52
53
-- Control flow: conditions and loops.
@@ -65,6 +66,7 @@ lex:set_word_list(lexer.TYPE, {
65
66
' c_void' , -- C void type
66
67
' f16' , ' f32' , ' f64' , ' f128' , -- Floating-point types
67
68
' bool' , ' void' , ' noreturn' , ' type' , ' anytype' , ' error' , ' anyerror' , -- Special types
69
+ ' addrspace' , ' anyframe' , ' anyopaque' , ' opaque' , ' threadlocal' ,
68
70
' comptime_int' , ' comptime_float' -- Comptime types
69
71
})
70
72
@@ -73,17 +75,22 @@ lex:set_word_list(lexer.FUNCTION, {
73
75
' addWithOverflow' , ' alignCast' , ' alignOf' , ' as' , ' asyncCall' , ' atomicLoad' , ' atomicRmw' ,
74
76
' atomicStore' , ' bitCast' , ' bitOffsetOf' , ' boolToInt' , ' bitSizeOf' , ' breakpoint' , ' mulAdd' ,
75
77
' byteSwap' , ' bitReverse' , ' byteOffsetOf' , ' call' , ' cDefine' , ' cImport' , ' cInclude' , ' clz' ,
76
- ' cmpxchgStrong' , ' cmpxchgWeak' , ' compileError' , ' compileLog' , ' ctz' , ' cUndef' , ' divExact' ,
77
- ' divFloor' , ' divTrunc' , ' embedFile' , ' enumToInt' , ' errorName' , ' errorReturnTrace' , ' errorToInt' ,
78
- ' errSetCast' , ' export' , ' fence' , ' field' , ' fieldParentPtr' , ' floatCast' , ' floatToInt' , ' frame' ,
79
- ' Frame' , ' frameAddress' , ' frameSize' , ' hasDecl' , ' hasField' , ' import' , ' intCast' , ' intToEnum' ,
80
- ' intToError' , ' intToFloat' , ' intToPtr' , ' memcpy' , ' memset' , ' wasmMemorySize' , ' wasmMemoryGrow' ,
81
- ' mod' , ' mulWithOverflow' , ' panic' , ' popCount' , ' ptrCast' , ' ptrToInt' , ' rem' , ' returnAddress' ,
82
- ' setAlignStack' , ' setCold' , ' setEvalBranchQuota' , ' setFloatMode' , ' setRuntimeSafety' , ' shlExact' ,
83
- ' shlWithOverflow' , ' shrExact' , ' shuffle' , ' sizeOf' , ' splat' , ' reduce' , ' src' , ' sqrt' , ' sin' ,
84
- ' cos' , ' exp' , ' exp2' , ' log' , ' log2' , ' log10' , ' fabs' , ' floor' , ' ceil' , ' trunc' , ' round' ,
85
- ' subWithOverflow' , ' tagName' , ' TagType' , ' This' , ' truncate' , ' Type' , ' typeInfo' , ' typeName' ,
86
- ' TypeOf' , ' unionInit'
78
+ ' cmpxchgStrong' , ' cmpxchgWeak' , ' compileError' , ' compileLog' , " constCast" , ' ctz' , ' cUndef' ,
79
+ ' divExact' , ' divFloor' , ' divTrunc' , ' embedFile' , ' enumToInt' , " enumFromInt" , " intFromEnum" ,
80
+ " errorCast" , ' errorName' , ' errorReturnTrace' , " errorFromInt" , ' errorToInt' , ' errSetCast' ,
81
+ ' export' , ' fence' , ' field' , ' fieldParentPtr' , ' floatCast' ,
82
+ " floatFromInt" , ' floatToInt' , ' frame' , ' Frame' , ' frameAddress' , ' frameSize' ,
83
+ ' hasDecl' , ' hasField' , ' import' , " intFromBool" , " intFromError" , " intFromFloat" ,
84
+ " inComptime" , ' intCast' , " intFromPtr" , ' intToEnum' , ' intToError' , ' intToFloat' , ' intToPtr' ,
85
+ ' memcpy' , ' memset' , ' wasmMemorySize' , ' wasmMemoryGrow' , ' mod' , ' mulWithOverflow' ,
86
+ " newStackCall" , " offsetOf" , " OpaqueType" , ' panic' , " prefetch" ,
87
+ ' popCount' , ' ptrCast' , " ptrFromInt" , ' ptrToInt' , ' reduce' , ' rem' , ' returnAddress' , " select" ,
88
+ ' setAlignStack' , ' setCold' , ' setEvalBranchQuota' , ' setFloatMode' , ' setRuntimeSafety' ,
89
+ ' shlExact' , ' shlWithOverflow' , ' shrExact' , ' shuffle' , ' sizeOf' , ' splat' ,
90
+ ' src' , ' sqrt' , ' sin' , ' cos' , ' tan' , ' exp' , ' exp2' , ' log' , ' log2' , ' log10' ,
91
+ ' max' , ' min' , ' abs' , ' fabs' , ' floor' , ' ceil' , ' trap' , ' trunc' , ' round' ,
92
+ ' subWithOverflow' , ' tagName' , ' TagType' , ' This' , ' truncate' ,
93
+ ' Type' , ' typeInfo' , ' typeName' , ' TypeOf' , ' unionInit' , ' Vector' , ' volatileCast'
87
94
})
88
95
89
96
-- Special values.
0 commit comments