This repository was archived by the owner on Dec 8, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +39
-17
lines changed
src/main/kotlin/org/ziglang/jb Expand file tree Collapse file tree 5 files changed +39
-17
lines changed Original file line number Diff line number Diff line change 1414 <option value =" runIde" />
1515 </list >
1616 </option >
17- <option name =" vmOptions" value =" " />
17+ <option name =" vmOptions" value =" -Didea.is.internal=true " />
1818 </ExternalSystemSettings >
1919 <ExternalSystemDebugServerProcess >true</ExternalSystemDebugServerProcess >
2020 <ExternalSystemReattachDebugProcess >true</ExternalSystemReattachDebugProcess >
2121 <DebugAllEnabled >false</DebugAllEnabled >
22+ <RunAsTest >false</RunAsTest >
2223 <method v =" 2" />
2324 </configuration >
2425</component >
Original file line number Diff line number Diff line change 44
55## [ Unreleased]
66
7+ ### Added
8+ - Initial support for 0.11.0 release:
9+ - Multi-object For Loops
10+ - New builtins
11+ - Rename Casting Builtins
712## [ 0.2.5] - 2023-07-30
813
914### Added
Original file line number Diff line number Diff line change 44pluginGroup = com.github.marioariasc.zigsupport
55pluginName = zig-support
66pluginRepositoryUrl = https://github.com/MarioAriasC/zig-support
7- pluginVersion = 0.2.5
7+ pluginVersion = 0.3.0
88
99# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
1010# for insight into build numbers and IntelliJ Platform versions.
Original file line number Diff line number Diff line change @@ -56,13 +56,11 @@ object ZigLang : Language("Zig") {
5656 " alignCast" ,
5757 " alignOf" ,
5858 " as" ,
59- " asyncCall" ,
6059 " atomicLoad" ,
6160 " atomicRmw" ,
6261 " atomicStore" ,
6362 " bitCast" ,
6463 " bitOffsetOf" ,
65- " boolToInt" ,
6664 " bitSizeOf" ,
6765 " breakpoint" ,
6866 " mulAdd" ,
@@ -78,36 +76,40 @@ object ZigLang : Language("Zig") {
7876 " cmpxchgWeak" ,
7977 " compileError" ,
8078 " compileLog" ,
79+ " constCast" ,
8180 " ctz" ,
8281 " cUndef" ,
82+ " cVaArg" ,
83+ " cVaCopy" ,
84+ " cVaEnd" ,
85+ " cVaStart" ,
8386 " divExact" ,
8487 " divFloor" ,
8588 " divTrunc" ,
8689 " embedFile" ,
87- " enumToInt" ,
90+ " enumFromInt" ,
91+ " errorFromInt" ,
8892 " errorName" ,
8993 " errorReturnTrace" ,
90- " errorToInt" ,
9194 " errSetCast" ,
9295 " export" ,
9396 " extern" ,
9497 " fence" ,
9598 " field" ,
9699 " fieldParentPtr" ,
97100 " floatCast" ,
98- " floatToInt" ,
99- " frame" ,
100- " Frame" ,
101+ " floatFromInt" ,
101102 " frameAddress" ,
102- " frameSize" ,
103103 " hasDecl" ,
104104 " hasField" ,
105105 " import" ,
106+ " inComptime" ,
106107 " intCast" ,
107- " intToEnum" ,
108- " intToError" ,
109- " intToFloat" ,
110- " intToPtr" ,
108+ " intFromBool" ,
109+ " intFromEnum" ,
110+ " intFromError" ,
111+ " intFromFloat" ,
112+ " intFromPtr" ,
111113 " max" ,
112114 " memcpy" ,
113115 " memset" ,
@@ -120,7 +122,7 @@ object ZigLang : Language("Zig") {
120122 " popCount" ,
121123 " prefetch" ,
122124 " ptrCast" ,
123- " ptrToInt " ,
125+ " ptrFromInt " ,
124126 " rem" ,
125127 " returnAddress" ,
126128 " select" ,
@@ -154,12 +156,17 @@ object ZigLang : Language("Zig") {
154156 " subWithOverflow" ,
155157 " tagName" ,
156158 " This" ,
159+ " trap" ,
157160 " truncate" ,
158161 " Type" ,
159162 " typeInfo" ,
160163 " typeName" ,
161164 " TypeOf" ,
162165 " unionInit" ,
163166 " Vector" ,
167+ " volatileCast" ,
168+ " workGroupId" ,
169+ " workGroupSize" ,
170+ " workItemId" ,
164171 )
165172}
Original file line number Diff line number Diff line change @@ -206,6 +206,12 @@ private ContainerDeclAuto ::= ContainerDeclType LBRACE ContainerDocComment? Cont
206206
207207ContainerDeclType ::= STRUCT | OPAQUE | ENUM (LPAREN Expr RPAREN)? | UNION (LPAREN (ENUM (LPAREN Expr RPAREN)? | Expr) RPAREN)?
208208
209+ /*
210+ TypedTupleDecl ::= STRUCT LBRACE (TypeExpr COMMA)* TypeExpr RBRACE {
211+ pin = 1
212+ }
213+ */
214+
209215ErrorSetDecl ::= ERROR LBRACE IdentifierList RBRACE
210216
211217GroupedExpr ::= LPAREN Expr RPAREN
@@ -342,11 +348,14 @@ SwitchProng ::= INLINE? SwitchCase EQUALRARROW PtrPayload? AssignExpr
342348SwitchCase ::= SwitchItem (COMMA SwitchItem)* COMMA? | ELSE
343349SwitchItem ::= Expr (DOT3 Expr)?
344350
345- ForPrefix ::= FOR LPAREN Expr RPAREN PtrIndexPayload
351+ ForRange ::= Expr DOT2 Expr?
352+ ForOperand ::= ForRange | Expr
353+
354+ ForPrefix ::= FOR LPAREN (ForOperand COMMA)* ForOperand RPAREN PtrIndexPayload
346355WhilePrefix ::= WHILE LPAREN Expr RPAREN PtrPayload? WhileContinueExpr?
347356
348357WhileContinueExpr ::= COLON LPAREN AssignExpr RPAREN
349- PtrIndexPayload ::= PIPE ASTERISK? ID ( COMMA ID)? PIPE
358+ PtrIndexPayload ::= PIPE ( ASTERISK? ID COMMA)* (ASTERISK? ID) PIPE
350359
351360BlockExprStatement ::= BlockExpr | AssignExpr SEMICOLON
352361AssignExpr ::= Expr (AssignOp Expr)?
You can’t perform that action at this time.
0 commit comments