File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -427,7 +427,7 @@ function parseStruct(tokens: Token[]): StructDeclaration {
427
427
consume ( tokens , '{' )
428
428
const members : VariableDeclaration [ ] = [ ]
429
429
while ( tokens [ 0 ] && tokens [ 0 ] . value !== '}' ) {
430
- members . push ( parseIndeterminate ( tokens ) as VariableDeclaration )
430
+ members . push ( ... ( parseStatements ( tokens ) as unknown as VariableDeclaration [ ] ) )
431
431
}
432
432
consume ( tokens , '}' )
433
433
consume ( tokens , ';' )
Original file line number Diff line number Diff line change @@ -40,13 +40,13 @@ const glsl = /* glsl */ `#version 300 es
40
40
float one, two;
41
41
} globals;
42
42
43
- // struct X {
44
- // #if !defined(BLA)
45
- // int y;
46
- // #else
47
- // float z;
48
- // #endif
49
- // };
43
+ struct X {
44
+ #if !defined(BLA)
45
+ int y;
46
+ #else
47
+ float z;
48
+ #endif
49
+ };
50
50
51
51
struct LightData {
52
52
float intensity;
You can’t perform that action at this time.
0 commit comments