solemnwarning / rehex

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

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

Closed wilcoxjay closed 1 year ago

wilcoxjay commented 1 year 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 1 year ago

Thanks for pointing that out! Fixed.