GNOME Bugzilla – Bug 776833
Allow write enumerations values into one line separated by comma
Last modified: 2017-02-17 19:50:26 UTC
Created attachment 342787 [details] [review] patch to enam Sometimes enums take extra place and force paying extra attention on them. Especially that, which have many values and\or values, which developer can know from reading enum's name and\or several first values. If add possibility to write enum's values into one line, separating with comma, than this problem will be resolved: """ enum TestEnum AET, EAT, TEA, SS """ Also such definition will be valid by compiler, but not recommended from clearness side: """ enum TestEnum AET = 4, EAT, SS = 8 S =7 B = 4, ZZ = 88 // example of bad declaration """ Such approach I took from here: http://nim-lang.org/docs/manual.html#types-enumeration-types Patch is attached.
Created attachment 342940 [details] [review] genieparser: Allow comma-separated identifiers in definition of enums
Many thanks, Rico =)
Attachment 342940 [details] pushed as 4672f73 - genieparser: Allow comma-separated identifiers in definition of enums