Open d3dave opened 4 months ago
This is unfortunately a known limitation of the current parser. Would love to support this since I also regularly run into this issue. Not sure how feasible it is with the current parser though. Ideally we get a better parser with perhaps a proper AST down the line.
The definition
struct X { int x : 16, y : 16; }
gets parsed incorrectly into the following tokens:As you can see,
x : 16
is mistakenly truncated and treated as an identifier instead of a name likey : 16
.