This repository was archived by the owner on Dec 8, 2023. It is now read-only.
File tree 3 files changed +12
-8
lines changed
src/main/kotlin/org/ziglang/jb/grammar
3 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 3
3
# zig-support Changelog
4
4
5
5
## [ Unreleased]
6
-
6
+ ### Added
7
+ - Support for Zig 0.10.0
8
+ - ` packed ` structs with backing field, e.g.: ` packed struct(i32) `
9
+ - ` inline ` switch cases
10
+ - Remove ` anytype ` fields
7
11
## [ 0.1.0]
8
- ### Added
9
- - [ #24 ] ( https://github.com/MarioAriasC/zig-support/issues/24 ) Use ` zig fmt ` to format ` *.zig ` files. You can use
10
- the ` Reformat code ` action (By default ` Cmd/Ctrl + Alt + L ` )
12
+ ### Added
13
+ - [ #24 ] ( https://github.com/MarioAriasC/zig-support/issues/24 ) Use ` zig fmt ` to format ` *.zig ` files. You can use
14
+ the ` Reformat code ` action (By default ` Cmd/Ctrl + Alt + L ` )
11
15
- Updated to the latest JetBrain's IntelliJ platform plugin version.
12
16
13
17
## [ 0.0.7]
Original file line number Diff line number Diff line change 3
3
4
4
pluginGroup = com.github.marioariasc.zigsupport
5
5
pluginName = zig-support
6
- pluginVersion = 0.1 .0
6
+ pluginVersion = 0.2 .0
7
7
8
8
# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
9
9
# for insight into build numbers and IntelliJ Platform versions.
Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ Symbol ::= ID {
192
192
193
193
ContainerDecl ::= ContainerDeclAuto | PackedContainerDecl | ExternContainerDecl
194
194
195
- private PackedContainerDecl ::= PACKED ContainerDeclType LBRACE ContainerDocComment? ContainerMembers RBRACE {
195
+ private PackedContainerDecl ::= PACKED (STRUCT (LPAREN Expr RPAREN) | ContainerDeclType) LBRACE ContainerDocComment? ContainerMembers RBRACE {
196
196
pin = 1
197
197
}
198
198
@@ -233,7 +233,7 @@ EqualExpr ::= EQUAL Expr {
233
233
pin = 1
234
234
}
235
235
236
- ContainerField ::= DocComment? COMPTIME? ID (COLON (ANY_TYPE| TypeExpr) ByteAlign?)? (EQUAL Expr)? {
236
+ ContainerField ::= DocComment? COMPTIME? ID (COLON TypeExpr ByteAlign?)? (EQUAL Expr)? {
237
237
implements=['com.intellij.psi.PsiNameIdentifierOwner']
238
238
mixin='org.ziglang.jb.reference.ContainerFieldMixin'
239
239
}
@@ -338,7 +338,7 @@ WhileStatement ::= WhilePrefix BlockExpr (ELSE Payload? Statement)? | WhilePrefi
338
338
339
339
SwitchExpr ::= SWITCH LPAREN Expr RPAREN LBRACE SwitchProngList RBRACE
340
340
SwitchProngList ::= (SwitchProng COMMA)* SwitchProng?
341
- SwitchProng ::= SwitchCase EQUALRARROW PtrPayload? AssignExpr
341
+ SwitchProng ::= INLINE? SwitchCase EQUALRARROW PtrPayload? AssignExpr
342
342
SwitchCase ::= SwitchItem (COMMA SwitchItem)* COMMA? | ELSE
343
343
SwitchItem ::= Expr (DOT3 Expr)?
344
344
You can’t perform that action at this time.
0 commit comments