vickenty / lang-c

Lightweight C parser for Rust
Apache License 2.0
202 stars 30 forks source link

Added missing space between struct declarator and attribute #26

Closed robbym closed 4 years ago

robbym commented 4 years ago

This works:

typdef struct
{
    int arr[2]__attribute__((aligned));
} mystruct;

This does not:

typdef struct
{
    int arr[2] __attribute__((aligned));
} mystruct;

This PR fixes that.