solemnwarning / rehex

Reverse Engineers' Hex Editor
https://rehex.solemnwarning.net/
GNU General Public License v2.0
2.3k stars 113 forks source link

enums in binary templates are documented to support trailing comma, but don't actually support that #216

Closed wilcoxjay closed 10 months ago

wilcoxjay commented 11 months ago

The first example of an enum in a binary template from the manual is

enum simple_enum_type
{
    ENUM_ONE,
    ENUM_TWO,
    ENUM_THREE,
};

with a trailing comma after ENUM_THREE, but I couldn't get this to work. I get a parse error at the close brace.

solemnwarning commented 10 months ago

Thanks for pointing that out! Fixed.